sbase/text.h
FRIGN e4810f1cdb Support NUL-containing lines in cols(1)
This required an architectural change in getlines() by also storing
the line length.
2016-03-10 08:48:09 +00:00

17 lines
327 B
C

/* See LICENSE file for copyright and license details. */
struct linebufline {
char *data;
size_t len;
};
struct linebuf {
struct linebufline *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 *);