]> pd.if.org Git - pd_readline/blobdiff - history.c
More work.
[pd_readline] / history.c
index f8a0d256d81c6b29b3a0ac7d4eb99c7508734088..23707502c626fb6d9a5a78686220405b05c4facf 100644 (file)
--- a/history.c
+++ b/history.c
@@ -6,6 +6,9 @@
 /*  "Share and enjoy...."  ;)                          */  
 /*  See the UNLICENSE file for details.                */ 
 
+#include <string.h>   
+#include <stdio.h> 
+#include <stdlib.h> 
 
 
 /*  Helper function, to let us see if a file */ 
@@ -36,7 +39,9 @@ char hist[20][80];
 
 
 
-/* Read the file into the array of strings.  */ 
+/* Read the file into the array of strings.                */ 
+/* TO DO - look at reading file into a series of structs.  */ 
+
 void readhistory(char *fname) 
 { 
    int retval = fexists(fname); 
@@ -61,5 +66,11 @@ void readhistory(char *fname)
 }      
 
 
+/* TO DO - a function that reads in the 2d history array, and    */ 
+/* returns a struct with one line from the array, and the index  */
+/* of the line.                                                  */ 
+
+