X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=history.c;fp=history.c;h=23707502c626fb6d9a5a78686220405b05c4facf;hp=f84ec24bda425a41a49ebe8277fa45c919ea49f8;hb=7a1a81d517d3e95f6f9f5dba853fe6d9d8c27ab3;hpb=3345932d0ab453d9ca85814fde1fe618bb36570f diff --git a/history.c b/history.c index f84ec24..2370750 100644 --- a/history.c +++ b/history.c @@ -39,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); @@ -64,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. */ + + +