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

Function new_omailcmd

util/sfctool.c:1121–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119}
1120
1121void
1122new_omailcmd(struct obj* otmp, const char * response_cmd)
1123{
1124 if (!otmp->oextra)
1125 otmp->oextra = newoextra();
1126 if (OMAILCMD(otmp))
1127 free_omailcmd(otmp);
1128 OMAILCMD(otmp) = dupstr(response_cmd);
1129}
1130
1131void
1132free_omailcmd(struct obj* otmp)

Callers

nothing calls this directly

Calls 3

dupstrFunction · 0.85
newoextraFunction · 0.70
free_omailcmdFunction · 0.70

Tested by

no test coverage detected