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

Function newebones

util/sfctool.c:1039–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037}
1038
1039void
1040newebones(struct monst *mtmp)
1041{
1042 if (!mtmp->mextra)
1043 mtmp->mextra = newmextra();
1044 if (!EBONES(mtmp)) {
1045 EBONES(mtmp) = (struct ebones *) alloc(sizeof(struct ebones));
1046 (void) memset((genericptr_t) EBONES(mtmp), 0, sizeof(struct ebones));
1047 }
1048}
1049
1050void
1051free_ebones(struct monst *mtmp)

Callers

nothing calls this directly

Calls 2

newmextraFunction · 0.70
allocFunction · 0.50

Tested by

no test coverage detected