Files
sbase/text.h
T

17 lines
299 B
C
Raw Normal View History

2011-05-25 20:40:47 +01:00
/* See LICENSE file for copyright and license details. */
struct line {
2016-02-29 00:45:53 +01:00
char *data;
size_t len;
};
2012-05-21 21:09:38 +00:00
struct linebuf {
struct line *lines;
2015-01-31 20:57:29 +01:00
size_t nlines;
size_t capacity;
2012-05-21 21:09:38 +00:00
};
#define EMPTY_LINEBUF {NULL, 0, 0,}
void getlines(FILE *, struct linebuf *);
int linecmp(struct line *, struct line *);