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

Function bl_idx_to_fldname

src/botl.c:2159–2165  ·  view source on GitHub ↗

used by X11 for "tty status" even when STATUS_HILITES is disabled */

Source from the content-addressed store, hash-verified

2157
2158/* used by X11 for "tty status" even when STATUS_HILITES is disabled */
2159const char *
2160bl_idx_to_fldname(int idx)
2161{
2162 if (idx >= 0 && idx < MAXBLSTATS)
2163 return initblstats[idx].fldname;
2164 return (const char *) 0;
2165}
2166
2167/* used when rendering hitpointbar; inoutbuf[] has been padded with
2168 trailing spaces; replace pairs of spaces with pairs of space+dash */

Callers 1

create_tty_status_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected