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

Function newepri

util/sfctool.c:956–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954 mtmp->isgd = 0;
955}
956void
957newepri(struct monst *mtmp)
958{
959 if (!mtmp->mextra)
960 mtmp->mextra = newmextra();
961 if (!EPRI(mtmp)) {
962 EPRI(mtmp) = (struct epri *) alloc(sizeof(struct epri));
963 (void) memset((genericptr_t) EPRI(mtmp), 0, sizeof(struct epri));
964 }
965}
966
967void
968free_epri(struct monst *mtmp)

Callers

nothing calls this directly

Calls 2

newmextraFunction · 0.70
allocFunction · 0.50

Tested by

no test coverage detected