X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=history.c;h=23707502c626fb6d9a5a78686220405b05c4facf;hp=f8a0d256d81c6b29b3a0ac7d4eb99c7508734088;hb=7a1a81d517d3e95f6f9f5dba853fe6d9d8c27ab3;hpb=36403b46c9eec27a672b0cfbfad9a79c7d153dca diff --git a/history.c b/history.c index f8a0d25..2370750 100644 --- a/history.c +++ b/history.c @@ -6,6 +6,9 @@ /* "Share and enjoy...." ;) */ /* See the UNLICENSE file for details. */ +#include +#include +#include /* 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. */ + + +