| 14 | typedef Boolean (*key_func)(unsigned char); |
| 15 | |
| 16 | int |
| 17 | get_line_from_key_queue(char *bufp) |
| 18 | { |
| 19 | *bufp = 0; |
| 20 | if (try_key_queue(bufp)) { |
| 21 | while (*bufp) { |
| 22 | if (*bufp == 10 || *bufp == 13) { |
| 23 | *bufp = 0; |
| 24 | } |
| 25 | bufp++; |
| 26 | } |
| 27 | return true; |
| 28 | } |
| 29 | return false; |
| 30 | } |
| 31 | |
| 32 | static void |
| 33 | topl_getlin(const char *query, char *bufp, Boolean ext) |
no test coverage detected