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

Function free_mgivenname

util/sfctool.c:928–935  ·  view source on GitHub ↗

release a monster's name; retains mextra even if all fields are now null */

Source from the content-addressed store, hash-verified

926
927/* release a monster's name; retains mextra even if all fields are now null */
928void
929free_mgivenname(struct monst *mon)
930{
931 if (has_mgivenname(mon)) {
932 free((genericptr_t) MGIVENNAME(mon));
933 MGIVENNAME(mon) = (char *) 0;
934 }
935}
936void
937newegd(struct monst *mtmp)
938{

Callers 1

new_mgivennameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected