| 9 | #include "macpopup.h" |
| 10 | |
| 11 | char |
| 12 | queued_resp(char *resp) |
| 13 | { |
| 14 | char buf[30]; |
| 15 | if (try_key_queue(buf)) { |
| 16 | if (!resp || strchr(resp, buf[0])) |
| 17 | return buf[0]; |
| 18 | if (digit(buf[0]) && strchr(resp, '#')) { |
| 19 | yn_number = atoi(buf); |
| 20 | return '#'; |
| 21 | } |
| 22 | } |
| 23 | return '\0'; |
| 24 | } |
| 25 | |
| 26 | char |
| 27 | topl_yn_function(const char *query, const char *resp, char def) |
no test coverage detected