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

Function new_omailcmd

src/mkobj.c:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void
157new_omailcmd(struct obj *otmp, const char *response_cmd)
158{
159 if (!otmp->oextra)
160 otmp->oextra = newoextra();
161 if (OMAILCMD(otmp))
162 free_omailcmd(otmp);
163 OMAILCMD(otmp) = dupstr(response_cmd);
164}
165
166void
167free_omailcmd(struct obj *otmp)

Callers 3

restobjFunction · 0.70
newmailFunction · 0.70
copy_oextraFunction · 0.70

Calls 3

dupstrFunction · 0.85
newoextraFunction · 0.70
free_omailcmdFunction · 0.70

Tested by

no test coverage detected