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

Function is_swallow_sym

src/pager.c:67–76  ·  view source on GitHub ↗

Returns "true" for characters that could represent a monster's stomach. */

Source from the content-addressed store, hash-verified

65
66/* Returns "true" for characters that could represent a monster's stomach. */
67staticfn boolean
68is_swallow_sym(int c)
69{
70 int i;
71
72 for (i = S_sw_tl; i <= S_sw_br; i++)
73 if ((int) gs.showsyms[i] == c)
74 return TRUE;
75 return FALSE;
76}
77
78/* Append " or "+new_str to the end of buf if new_str doesn't already exist
79 as a substring of buf. Return 1 if the string was appended, 0 otherwise.

Callers 1

do_screen_descriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected