Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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? */
61
boolean
62
digit(char c)
63
{
64
return (boolean) (
'0'
<= c && c <=
'9'
);
65
}
66
67
/* is
'c'
a letter? note:
'@'
classed as letter */
68
boolean
Callers
15
tty_yn_function
Function · 0.85
term_startup
Function · 0.85
tty_decgraphics_termcap_fixup
Function · 0.85
analyze_seq
Function · 0.85
mswin_yn_function
Function · 0.85
curses_character_input_dialog
Function · 0.85
yn_key
Function · 0.85
menu_key
Function · 0.85
optfn_menu_objsyms
Function · 0.85
optfn_scores
Function · 0.85
optfn_boolean
Function · 0.85
illegal_menu_cmd_key
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected