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

Function mac_yn_function

outdated/sys/mac/mactopl.c:51–64  ·  view source on GitHub ↗
(query, resp, def)

Source from the content-addressed store, hash-verified

49}
50
51char
52mac_yn_function(query, resp, def)
53const char *query, *resp;
54char def;
55/*
56 * Generic yes/no function. 'def' is the default (returned by space or
57 * return; 'esc' returns 'q', or 'n', or the default, depending on
58 * what's in the string. The 'query' string is printed before the user
59 * is asked about the string.
60 * If resp is NULL, any single character is accepted and returned.
61 */
62{
63 return topl_yn_function(query, resp, def);
64}
65
66/* mactopl.c */

Callers

nothing calls this directly

Calls 1

topl_yn_functionFunction · 0.85

Tested by

no test coverage detected