"the scroll" or "the scrolls" */
| 2471 | |
| 2472 | /* "the scroll" or "the scrolls" */ |
| 2473 | char * |
| 2474 | thesimpleoname(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 |
no test coverage detected