diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 2b928215f..1da37edb2 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -464,9 +464,12 @@ extern void xwrite(int fd, const void *buf, size_t count); | |||
464 | 464 | ||
465 | /* Reads and prints to stdout till eof, then closes FILE. Exits on error: */ | 465 | /* Reads and prints to stdout till eof, then closes FILE. Exits on error: */ |
466 | extern void xprint_and_close_file(FILE *file); | 466 | extern void xprint_and_close_file(FILE *file); |
467 | extern char *xmalloc_fgets(FILE *file); | 467 | /* Reads up to (and including) TERMINATING_STRING: */ |
468 | /* Read up to (and including) TERMINATING_STRING: */ | ||
469 | extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string); | 468 | extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string); |
469 | /* Chops off TERMINATING_STRING: from the end: */ | ||
470 | extern char *xmalloc_fgetline_str(FILE *file, const char *terminating_string); | ||
471 | /* Reads up to (and including) "\n" or NUL byte */ | ||
472 | extern char *xmalloc_fgets(FILE *file); | ||
470 | /* Chops off '\n' from the end, unlike fgets: */ | 473 | /* Chops off '\n' from the end, unlike fgets: */ |
471 | extern char *xmalloc_getline(FILE *file); | 474 | extern char *xmalloc_getline(FILE *file); |
472 | extern char *bb_get_chunk_from_file(FILE *file, int *end); | 475 | extern char *bb_get_chunk_from_file(FILE *file, int *end); |