MCPcopy Index your code
hub / github.com/NetHack/NetHack / digit

Function digit

src/hacklib.c:61–65  ·  view source on GitHub ↗

is 'c' a digit? */

Source from the content-addressed store, hash-verified

59
60/* is 'c' a digit? */
61boolean
62digit(char c)
63{
64 return (boolean) ('0' <= c && c <= '9');
65}
66
67/* is 'c' a letter? note: '@' classed as letter */
68boolean

Callers 15

tty_yn_functionFunction · 0.85
term_startupFunction · 0.85
analyze_seqFunction · 0.85
mswin_yn_functionFunction · 0.85
yn_keyFunction · 0.85
menu_keyFunction · 0.85
optfn_menu_objsymsFunction · 0.85
optfn_scoresFunction · 0.85
optfn_booleanFunction · 0.85
illegal_menu_cmd_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected