+ 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.
diff --git a/internal.h b/internal.h
index 18159b1..8c97a09 100644
--- a/internal.h
+++ b/internal.h
@@ -219,6 +219,8 @@
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);