diff options
Diffstat (limited to 'support/xstdio.h')
-rw-r--r-- | support/xstdio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/support/xstdio.h b/support/xstdio.h index 143957b6a8..807c3afc43 100644 --- a/support/xstdio.h +++ b/support/xstdio.h @@ -27,7 +27,10 @@ __BEGIN_DECLS FILE *xfopen (const char *path, const char *mode); void xfclose (FILE *); -ssize_t xgetline (char **lineptr, size_t *n, FILE *stream); +/* Read a line from FP, using getline. *BUFFER must be NULL, or a + heap-allocated pointer of *LENGTH bytes. Return the number of + bytes in the line if a line was read, or 0 on EOF. */ +size_t xgetline (char **lineptr, size_t *n, FILE *stream); __END_DECLS |