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

Function newemin

util/sfctool.c:997–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997void
998newemin(struct monst *mtmp)
999{
1000 if (!mtmp->mextra)
1001 mtmp->mextra = newmextra();
1002 if (!EMIN(mtmp)) {
1003 EMIN(mtmp) = (struct emin *) alloc(sizeof(struct emin));
1004 (void) memset((genericptr_t) EMIN(mtmp), 0, sizeof(struct emin));
1005 }
1006}
1007
1008void
1009free_emin(struct monst *mtmp)

Callers

nothing calls this directly

Calls 2

newmextraFunction · 0.70
allocFunction · 0.50

Tested by

no test coverage detected