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

Function name_to_mon

src/mondata.c:882–886  ·  view source on GitHub ↗

figure out what type of monster a user-supplied string is specifying; ignore anything past the monster name */

Source from the content-addressed store, hash-verified

880/* figure out what type of monster a user-supplied string is specifying;
881 ignore anything past the monster name */
882int
883name_to_mon(const char *in_str, int *gender_name_var)
884{
885 return name_to_monplus(in_str, (const char **) 0, gender_name_var);
886}
887
888/* figure out what type of monster a user-supplied string is specifying;
889 return a pointer to whatever is past the monster name--necessary if

Callers 12

fruitaddFunction · 0.85
name_to_monclassFunction · 0.85
readobjnam_postparse1Function · 0.85
nhl_is_genocidedFunction · 0.85
nh_timeoutFunction · 0.85
poisonedFunction · 0.85
polyselfFunction · 0.85
wiz_force_cham_formFunction · 0.85
create_monsterFunction · 0.85
do_class_genocideFunction · 0.85
do_genocideFunction · 0.85
create_particular_parseFunction · 0.85

Calls 1

name_to_monplusFunction · 0.85

Tested by

no test coverage detected