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/lineedit.c | |
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/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 5 |
1 files changed, 5 insertions, 0 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; |