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

Function check_mapchr

src/nhlua.c:392–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392schar
393check_mapchr(const char *s)
394{
395 if (s && strlen(s) == 1)
396 return splev_chr2typ(s[0]);
397 return INVALID_TYPE;
398}
399
400staticfn char
401splev_typ2chr(schar typ)

Callers 4

get_table_mapchrFunction · 0.85
get_table_mapchr_optFunction · 0.85
lspo_terrainFunction · 0.85

Calls 1

splev_chr2typFunction · 0.85

Tested by

no test coverage detected