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

Function newedog

util/sfctool.c:1018–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016}
1017
1018void
1019newedog(struct monst *mtmp)
1020{
1021 if (!mtmp->mextra)
1022 mtmp->mextra = newmextra();
1023 if (!EDOG(mtmp)) {
1024 EDOG(mtmp) = (struct edog *) alloc(sizeof(struct edog));
1025 (void) memset((genericptr_t) EDOG(mtmp), 0, sizeof(struct edog));
1026 }
1027}
1028
1029void
1030free_edog(struct monst *mtmp)

Callers

nothing calls this directly

Calls 2

newmextraFunction · 0.70
allocFunction · 0.50

Tested by

no test coverage detected