summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorJohn Beppu2000-04-17 04:22:09 +0000
committerJohn Beppu2000-04-17 04:22:09 +0000
commit5a728cfdfeaa0c6db8485bec230e24b3ca03806b (patch)
treedb9e84821fb8742d8c10636388db640f1f763c73 /internal.h
parent3becdfc31635bec63b6cbefde148d9bd3f3678a1 (diff)
downloadbusybox-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 18159b1..8c97a09 100644
--- a/internal.h
+++ b/internal.h
@@ -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);