sort: Librarify getlines()
This commit is contained in:
8
text.h
8
text.h
@@ -1,4 +1,12 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
struct linebuf {
|
||||
char **lines;
|
||||
long nlines;
|
||||
long capacity;
|
||||
};
|
||||
#define EMPTY_LINEBUF {NULL, 0, 0,}
|
||||
void getlines(FILE *, struct linebuf *);
|
||||
|
||||
char *afgets(char **, size_t *, FILE *);
|
||||
void concat(FILE *, const char *, FILE *, const char *);
|
||||
|
Reference in New Issue
Block a user