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

Function cond_bm2idx

win/X11/winstat.c:281–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279
280#if 0
281int
282cond_bm2idx(unsigned long bm)
283{
284 int i;
285
286 for (i = 0; i < 32; i++)
287 if ((1 << i) == bm)
288 return i;
289 return -1;
290}
291#endif
292
293/* highlight a tty-style status field (or condition) */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected