sbase/text.h
Jakob Kramer 4769b47dd7 Use size_t for number of lines in linebuf
.nlines and .capacity are used as array indices and
should therefore be of type size_t.
2015-01-31 22:49:43 +00:00

12 lines
263 B
C

/* See LICENSE file for copyright and license details. */
struct linebuf {
char **lines;
size_t nlines;
size_t capacity;
};
#define EMPTY_LINEBUF {NULL, 0, 0,}
void getlines(FILE *, struct linebuf *);
void concat(FILE *, const char *, FILE *, const char *);