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

Function ysimple_name

src/objnam.c:2390–2398  ·  view source on GitHub ↗

returns "your minimal_xname(obj)" * or "Foobar's minimal_xname(obj)" * or "the minimal_xname(obj)" */

Source from the content-addressed store, hash-verified

2388 * or "the minimal_xname(obj)"
2389 */
2390char *
2391ysimple_name(struct obj *obj)
2392{
2393 char *outbuf = nextobuf();
2394 char *s = shk_your(outbuf, obj); /* assert( s == outbuf ); */
2395 int space_left = BUFSZ - 1 - Strlen(s);
2396
2397 return strncat(s, minimal_xname(obj), space_left);
2398}
2399
2400/* capitalized variant of ysimple_name() */
2401char *

Callers 6

hmon_hitmon_misc_objFunction · 0.85
Ysimple_name2Function · 0.85
from_whatFunction · 0.85
query_objlistFunction · 0.85
pickup_objectFunction · 0.85
dowriteFunction · 0.85

Calls 3

nextobufFunction · 0.85
shk_yourFunction · 0.85
minimal_xnameFunction · 0.85

Tested by

no test coverage detected