diff options
author | John Beppu | 2000-04-17 04:22:09 +0000 |
---|---|---|
committer | John Beppu | 2000-04-17 04:22:09 +0000 |
commit | 5a728cfdfeaa0c6db8485bec230e24b3ca03806b (patch) | |
tree | db9e84821fb8742d8c10636388db640f1f763c73 /internal.h | |
parent | 3becdfc31635bec63b6cbefde148d9bd3f3678a1 (diff) | |
download | busybox-5a728cfdfeaa0c6db8485bec230e24b3ca03806b.zip busybox-5a728cfdfeaa0c6db8485bec230e24b3ca03806b.tar.gz |
+ in the interest of robustness, I added
utility.c :: cstring_alloc()
utility.c :: cstring_lineFromFile() /* they're at the bottom */
so that I could read in lines of arbitrary length from FILE*s
(instead of using fgets(huge_ass_buffer,...)).
+ I tested it out on sort, and it seems to be fine.
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -219,6 +219,8 @@ extern long getNum (const char *cp); extern pid_t* findPidByName( char* pidName); extern void *xmalloc (size_t size); extern int find_real_root_device_name(char* name); +extern char *cstring_lineFromFile(FILE *f); + #if defined BB_INIT || defined BB_SYSLOGD extern int device_open(char *device, int mode); |