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

Function try_key_queue

outdated/sys/mac/macwin.c:2140–2155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2138}
2139
2140int
2141try_key_queue(char *bufp)
2142{
2143 if (keyQueueCount) {
2144 char ch;
2145 for (ch = GetFromKeyQueue();; ch = GetFromKeyQueue()) {
2146 if (ch == CHAR_LF || ch == CHAR_CR)
2147 ch = 0;
2148 *bufp++ = ch;
2149 if (ch == 0)
2150 break;
2151 }
2152 return 1;
2153 }
2154 return 0;
2155}
2156
2157/**********************************************************************
2158 * Base window

Callers 2

get_line_from_key_queueFunction · 0.85
queued_respFunction · 0.85

Calls 1

GetFromKeyQueueFunction · 0.85

Tested by

no test coverage detected