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

Function oclass_to_name

src/o_init.c:876–885  ·  view source on GitHub ↗

lower case let_to_name() output, which differs from def_oc_syms[].name */

Source from the content-addressed store, hash-verified

874
875/* lower case let_to_name() output, which differs from def_oc_syms[].name */
876staticfn char *
877oclass_to_name(char oclass, char *buf)
878{
879 char *s;
880
881 Strcpy(buf, let_to_name(oclass, FALSE, FALSE));
882 for (s = buf; *s; ++s)
883 *s = lowc(*s);
884 return buf;
885}
886
887/* the #knownclass command - show discovered object types for one class;
888 in addition to actual object classes, supports pseudo-class 'a' for

Callers 1

doclassdiscoFunction · 0.85

Calls 2

let_to_nameFunction · 0.85
lowcFunction · 0.70

Tested by

no test coverage detected