sbase/text.h

18 lines
356 B
C
Raw Normal View History

2011-05-25 19:40:47 +00:00
/* See LICENSE file for copyright and license details. */
struct line {
char *data;
size_t len;
};
2012-05-21 21:09:38 +00:00
struct linebuf {
struct line *lines;
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 *);
2011-05-26 17:18:42 +00:00
void concat(FILE *, const char *, FILE *, const char *);
int linecmp(struct line *, struct line *);