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

Function splev_typ2chr

src/nhlua.c:400–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400staticfn char
401splev_typ2chr(schar typ)
402{
403 int i;
404
405 for (i = 0; char2typ[i].typ < MAX_TYPE; i++)
406 if (typ == char2typ[i].typ)
407 return char2typ[i].ch;
408 return 'x';
409}
410
411DISABLE_WARNING_UNREACHABLE_CODE
412

Callers 1

nhl_getmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected