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

Function free_invbuf

src/invent.c:4841–4850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4839}
4840
4841RESTORE_WARNING_FORMAT_NONLITERAL
4842
4843/* release the static buffer used by let_to_name() */
4844void
4845free_invbuf(void)
4846{
4847 if (gi.invbuf)
4848 free((genericptr_t) gi.invbuf), gi.invbuf = (char *) 0;
4849 gi.invbufsiz = 0;
4850}
4851
4852/* give consecutive letters to every item in inventory (for !fixinv mode);
4853 gold is always forced to '$' slot at head of list */

Callers 1

freedynamicdataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected