You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
299 B

/* 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 *);