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

Function unsortloot

src/invent.c:646–651  ·  view source on GitHub ↗

sortloot() callers should use this to free up memory it allocates */

Source from the content-addressed store, hash-verified

644
645/* sortloot() callers should use this to free up memory it allocates */
646void
647unsortloot(Loot **loot_array_p)
648{
649 if (*loot_array_p)
650 free((genericptr_t) *loot_array_p), *loot_array_p = (Loot *) 0;
651}
652
653#if 0 /* 3.6.0 'revamp' -- simpler than current, but ultimately too simple */
654void

Callers 5

container_contentsFunction · 0.85
getobjFunction · 0.85
askchainFunction · 0.85
invent.cFile · 0.85
query_objlistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected