MCPcopy Index your code
hub / github.com/NetHack/NetHack / newedog

Function newedog

src/dog.c:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20};
21
22void
23newedog(struct monst *mtmp)
24{
25 if (!mtmp->mextra)
26 mtmp->mextra = newmextra();
27 if (!EDOG(mtmp)) {
28 EDOG(mtmp) = (struct edog *) alloc(sizeof(struct edog));
29 (void) memset((genericptr_t) EDOG(mtmp), 0, sizeof(struct edog));
30 EDOG(mtmp)->parentmid = mtmp->m_id;
31 }
32}
33
34void
35free_edog(struct monst *mtmp)

Callers 4

restmonFunction · 0.70
tamedogFunction · 0.70
copy_mextraFunction · 0.70
makemonFunction · 0.70

Calls 2

newmextraFunction · 0.70
allocFunction · 0.70

Tested by

no test coverage detected