commit | 6a5377ac14bec2f2ae62c4ec085ff3b149cc11ad | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Tue Sep 25 18:35:28 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Tue Sep 25 18:35:28 2007 +0000 |
tree | bb2200121abb55f06facbe8793c649ae90f53717 | |
parent | ea7645bab62c6f68c755cf717662bceaa04858ed [diff] [blame] |
documentation bits in comments, no code changes
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 62f8949..a018a53 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c
@@ -1253,6 +1253,11 @@ #undef CTRL #define CTRL(a) ((a) & ~0x40) +/* Returns: + * -1 on read errors or EOF, or on bare Ctrl-D. + * 0 on ctrl-C, + * >0 length of input string, including terminating '\n' + */ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *st) { int lastWasTab = FALSE;