*h = *hbot;
}
-/* Return the string in the history list just before h, or NULL if there
- * isn't one. */
+/* Move h to the string in the history list just before it, and return
+ * that string. If there isn't one, don't move h and return NULL. */
char *get_history_older(filestruct **h)
{
assert(h != NULL);
return (*h)->data;
}
-/* Return the string in the history list just after h, or NULL if there
- * isn't one. */
+/* Move h to the string in the history list just after it, and return
+ * that string. If there isn't one, don't move h and return NULL. */
char *get_history_newer(filestruct **h)
{
assert(h != NULL);