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

Function split_clridx

src/botl.c:2575–2582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2573#undef Is_Temp_Hilite
2574
2575staticfn void
2576split_clridx(int idx, int *coloridx, int *attrib)
2577{
2578 if (coloridx)
2579 *coloridx = idx & 0x00FF;
2580 if (attrib)
2581 *attrib = (idx >> 8) & 0x00FF;
2582}
2583
2584/*
2585 * This is the parser for the hilite options.

Callers 2

status_hilite2strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected