diff --git a/kilo.c b/kilo.c index 20cb239..857ec08 100644 --- a/kilo.c +++ b/kilo.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -63,6 +64,10 @@ struct editorConfig { struct editorConfig E; +/*** prototypes ***/ + +void editorSetStatusMessage(const char *fmt, ...); + /*** terminal ***/ void die(const char *s) { @@ -255,6 +260,26 @@ void editorInsertChar(int c) { /*** file i/o ***/ +char *editorRowsToString(int *buflen) { + int totlen = 0; + int j; + for (j=0; j