splitting things out

This commit is contained in:
2020-02-11 09:52:49 -08:00
parent d868f6ca61
commit 135166c4c2
4 changed files with 94 additions and 78 deletions

17
abuf.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef KE_ABUF_H
#define KE_ABUF_H
struct abuf {
char *b;
int len;
};
#define ABUF_INIT {NULL, 0}
void ab_append(struct abuf *buf, const char *s, int len);
void ab_free(struct abuf *buf);
#endif /* KE_ABUF_H */