MCPcopy Create free account
hub / github.com/NetHack/NetHack / queued_resp

Function queued_resp

outdated/sys/mac/mactopl.c:11–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "macpopup.h"
10
11char
12queued_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
26char
27topl_yn_function(const char *query, const char *resp, char def)

Callers 1

topl_yn_functionFunction · 0.85

Calls 2

try_key_queueFunction · 0.85
digitFunction · 0.85

Tested by

no test coverage detected