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

Function neweshk

util/sfctool.c:976–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974 mtmp->ispriest = 0;
975}
976void
977neweshk(struct monst* mtmp)
978{
979 if (!mtmp->mextra)
980 mtmp->mextra = newmextra();
981 if (!ESHK(mtmp))
982 ESHK(mtmp) = (struct eshk *) alloc(sizeof(struct eshk));
983 (void) memset((genericptr_t) ESHK(mtmp), 0, sizeof(struct eshk));
984 ESHK(mtmp)->bill_p = (struct bill_x *) 0;
985}
986
987void
988free_eshk(struct monst* mtmp)

Callers

nothing calls this directly

Calls 2

newmextraFunction · 0.70
allocFunction · 0.50

Tested by

no test coverage detected