diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-25 18:35:28 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-25 18:35:28 +0000 |
commit | 6a5377ac14bec2f2ae62c4ec085ff3b149cc11ad (patch) | |
tree | bb2200121abb55f06facbe8793c649ae90f53717 /libbb | |
parent | ea7645bab62c6f68c755cf717662bceaa04858ed (diff) | |
download | busybox-w32-6a5377ac14bec2f2ae62c4ec085ff3b149cc11ad.tar.gz busybox-w32-6a5377ac14bec2f2ae62c4ec085ff3b149cc11ad.tar.bz2 busybox-w32-6a5377ac14bec2f2ae62c4ec085ff3b149cc11ad.zip |
documentation bits in comments, no code changes
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 5 | ||||
-rw-r--r-- | libbb/skip_whitespace.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 62f8949d6..a018a53ff 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -1253,6 +1253,11 @@ static void win_changed(int nsig) | |||
1253 | #undef CTRL | 1253 | #undef CTRL |
1254 | #define CTRL(a) ((a) & ~0x40) | 1254 | #define CTRL(a) ((a) & ~0x40) |
1255 | 1255 | ||
1256 | /* Returns: | ||
1257 | * -1 on read errors or EOF, or on bare Ctrl-D. | ||
1258 | * 0 on ctrl-C, | ||
1259 | * >0 length of input string, including terminating '\n' | ||
1260 | */ | ||
1256 | int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *st) | 1261 | int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *st) |
1257 | { | 1262 | { |
1258 | int lastWasTab = FALSE; | 1263 | int lastWasTab = FALSE; |
diff --git a/libbb/skip_whitespace.c b/libbb/skip_whitespace.c index bdfb97d70..87b5f23ba 100644 --- a/libbb/skip_whitespace.c +++ b/libbb/skip_whitespace.c | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | char *skip_whitespace(const char *s) | 12 | char *skip_whitespace(const char *s) |
13 | { | 13 | { |
14 | /* NB: isspace('0') returns 0 */ | 14 | /* NB: isspace('\0') returns 0 */ |
15 | while (isspace(*s)) ++s; | 15 | while (isspace(*s)) ++s; |
16 | 16 | ||
17 | return (char *) s; | 17 | return (char *) s; |