aboutsummaryrefslogtreecommitdiff
path: root/include/history.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/history.h')
-rw-r--r--include/history.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/history.h b/include/history.h
new file mode 100644
index 0000000..b299b8f
--- /dev/null
+++ b/include/history.h
@@ -0,0 +1,14 @@
+
+#define HISTORY_SIZE 100
+
+struct history
+{
+ char *lines[HISTORY_SIZE];
+ int pos;
+ int realpos;
+};
+
+void history_add (struct history *his, char *text);
+void history_free (struct history *his);
+char *history_up (struct history *his);
+char *history_down (struct history *his);