blob: 9858592b1dfc7f1517506ca9c490068ec6fbecbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 *);
|