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

Function attr2attrname

src/coloratt.c:319–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319const char *
320attr2attrname(int attr)
321{
322 int i;
323
324 for (i = 0; i < SIZE(attrnames); i++)
325 if (attrnames[i].attr == attr)
326 return attrnames[i].name;
327 return (char *) 0;
328}
329
330/*
331 * Color support functions and data for "color"

Callers 4

optfn_petattrFunction · 0.85
handler_menu_colorsFunction · 0.85
all_options_menucolorsFunction · 0.85
color_attr_to_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected