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

Function free_oname

util/sfctool.c:1215–1222  ·  view source on GitHub ↗

release an object's name; retains oextra even if all fields are now null */

Source from the content-addressed store, hash-verified

1213
1214/* release an object's name; retains oextra even if all fields are now null */
1215void
1216free_oname(struct obj *obj)
1217{
1218 if (has_oname(obj)) {
1219 free((genericptr_t) ONAME(obj));
1220 ONAME(obj) = (char *) 0;
1221 }
1222}
1223
1224#ifdef WIN32
1225void

Callers 1

new_onameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected