diff options
author | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-04-17 04:22:09 +0000 |
---|---|---|
committer | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-04-17 04:22:09 +0000 |
commit | cdab153cc57f12291471186bd083c278eb47bb42 (patch) | |
tree | db9e84821fb8742d8c10636388db640f1f763c73 /internal.h | |
parent | 489710b1137b8e37331918848d06c1be1794e0e6 (diff) | |
download | busybox-w32-cdab153cc57f12291471186bd083c278eb47bb42.tar.gz busybox-w32-cdab153cc57f12291471186bd083c278eb47bb42.tar.bz2 busybox-w32-cdab153cc57f12291471186bd083c278eb47bb42.zip |
+ 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.
git-svn-id: svn://busybox.net/trunk/busybox@463 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 18159b1d3..8c97a090a 100644 --- a/internal.h +++ b/internal.h | |||
@@ -219,6 +219,8 @@ extern long getNum (const char *cp); | |||
219 | extern pid_t* findPidByName( char* pidName); | 219 | extern pid_t* findPidByName( char* pidName); |
220 | extern void *xmalloc (size_t size); | 220 | extern void *xmalloc (size_t size); |
221 | extern int find_real_root_device_name(char* name); | 221 | extern int find_real_root_device_name(char* name); |
222 | extern char *cstring_lineFromFile(FILE *f); | ||
223 | |||
222 | 224 | ||
223 | #if defined BB_INIT || defined BB_SYSLOGD | 225 | #if defined BB_INIT || defined BB_SYSLOGD |
224 | extern int device_open(char *device, int mode); | 226 | extern int device_open(char *device, int mode); |