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

Function thesimpleoname

src/objnam.c:2473–2483  ·  view source on GitHub ↗

"the scroll" or "the scrolls" */

Source from the content-addressed store, hash-verified

2471
2472/* "the scroll" or "the scrolls" */
2473char *
2474thesimpleoname(struct obj *obj)
2475{
2476 char *obufp, *simpleoname = simpleonames(obj);
2477
2478 /* the() will allocate another obuf[]; we want to avoid using two */
2479 obufp = the(simpleoname);
2480 Strcpy(simpleoname, obufp);
2481 releaseobuf(obufp);
2482 return simpleoname;
2483}
2484
2485/* basic name of obj, as if it has been discovered; for some types of
2486 items, we can't just use OBJ_NAME() because it doesn't always include

Callers 12

container_contentsFunction · 0.85
dip_intoFunction · 0.85
potion_dipFunction · 0.85
stop_donningFunction · 0.85
toss_upFunction · 0.85
do_play_instrumentFunction · 0.85
loot_monFunction · 0.85
in_or_out_menuFunction · 0.85
tipcontainer_checksFunction · 0.85
use_candleFunction · 0.85
flip_through_bookFunction · 0.85
reject_purchaseFunction · 0.85

Calls 3

simpleonamesFunction · 0.85
theFunction · 0.85
releaseobufFunction · 0.85

Tested by

no test coverage detected