diff options
author | Rob Landley <rob@landley.net> | 2008-04-13 00:29:00 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-04-13 00:29:00 -0500 |
commit | 3fc4e0fd7b4f286fa176b779b2cec243d61ade50 (patch) | |
tree | 13c05bc0680a2c7fa6c34cb4e3e5019d0f617b3f /lib/lib.h | |
parent | f639c65ac49b97fdf2445f6ba79da66eb986e925 (diff) | |
download | toybox-3fc4e0fd7b4f286fa176b779b2cec243d61ade50.tar.gz |
Teach get_rawline() to continue until a configurable char, and xstrndup()
shouldn't die when it's told to chop out a subsection of a string.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ long atolx(char *c); off_t fdlength(int fd); char *xreadlink(char *name); void loopfiles(char **argv, void (*function)(int fd, char *name)); -char *get_rawline(int fd, long *plen); +char *get_rawline(int fd, long *plen, char end); char *get_line(int fd); void xsendfile(int in, int out); int copy_tempfile(int fdin, char *name, char **tempname); |