preliminary code. Segfaults.
[libeditor.git] / editor / editor.h
blobf3f7e8b1816f9167e35ed9465c00be2beadb1d85
1 #include <stdio.h>
2 #include <stdbool.h>
3 #include <stdint.h>
5 #ifndef EDITOR_H
6 #define EDITOR_H
8 typedef struct {
9 FILE *fp;
10 char *fn;
12 bool isclosed;
13 char **text;
14 uint64_t numlines;
15 } File;
17 int readfile(char*);
18 void closebuffer(int);
20 // Actually an array
21 extern File *filebuffers;
22 extern uint64_t numbuffers;
23 #endif // EDITOR_H