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

Function msgtype2name

src/options.c:7689–7698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7687};
7688
7689staticfn const char *
7690msgtype2name(int typ)
7691{
7692 int i;
7693
7694 for (i = 0; i < SIZE(msgtype_names); i++)
7695 if (msgtype_names[i].descr && msgtype_names[i].msgtyp == typ)
7696 return msgtype_names[i].name;
7697 return (char *) 0;
7698}
7699
7700staticfn int
7701query_msgtype(void)

Callers 2

handler_msgtypeFunction · 0.85
all_options_msgtypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected