MCPcopy Index your code
hub / github.com/NetHack/NetHack / nextobuf

Function nextobuf

src/objnam.c:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139static int obufidx = 0;
140
141staticfn char *
142nextobuf(void)
143{
144 obufidx = (obufidx + 1) % NUMOBUF;
145 return obufs[obufidx];
146}
147
148/* put the most recently allocated buffer back if possible */
149staticfn void

Callers 15

obj_typenameFunction · 0.85
safe_typenameFunction · 0.85
fruitnameFunction · 0.85
xname_flagsFunction · 0.85
corpse_xnameFunction · 0.85
killer_xnameFunction · 0.85
anFunction · 0.85
theFunction · 0.85
yobjnamFunction · 0.85
ynameFunction · 0.85
ysimple_nameFunction · 0.85
bare_artifactnameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected