diff options
Diffstat (limited to 'util/sbase/text.h')
-rw-r--r-- | util/sbase/text.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/util/sbase/text.h b/util/sbase/text.h new file mode 100644 index 00000000..9858592b --- /dev/null +++ b/util/sbase/text.h @@ -0,0 +1,16 @@ +/* See LICENSE file for copyright and license details. */ + +struct line { + char *data; + size_t len; +}; + +struct linebuf { + struct line *lines; + size_t nlines; + size_t capacity; +}; +#define EMPTY_LINEBUF {NULL, 0, 0,} +void getlines(FILE *, struct linebuf *); + +int linecmp(struct line *, struct line *); |