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

Function newegd

util/sfctool.c:936–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

934 }
935}
936void
937newegd(struct monst *mtmp)
938{
939 if (!mtmp->mextra)
940 mtmp->mextra = newmextra();
941 if (!EGD(mtmp)) {
942 EGD(mtmp) = (struct egd *) alloc(sizeof (struct egd));
943 (void) memset((genericptr_t) EGD(mtmp), 0, sizeof (struct egd));
944 }
945}
946
947void
948free_egd(struct monst *mtmp)

Callers

nothing calls this directly

Calls 2

newmextraFunction · 0.70
allocFunction · 0.50

Tested by

no test coverage detected