"scroll" or "scrolls" */
| 2425 | |
| 2426 | /* "scroll" or "scrolls" */ |
| 2427 | char * |
| 2428 | simpleonames(struct obj *obj) |
| 2429 | { |
| 2430 | char *obufp, *simpleoname = minimal_xname(obj); |
| 2431 | |
| 2432 | if (obj->quan != 1L) { |
| 2433 | /* 'simpleoname' points to an obuf; makeplural() will allocate |
| 2434 | another one and only that one can be explicitly released for |
| 2435 | re-use, so this is slightly convoluted to cope with that; |
| 2436 | makeplural() will be fully evaluated and done with its input |
| 2437 | argument before strcpy() touches its output argument */ |
| 2438 | Strcpy(simpleoname, obufp = makeplural(simpleoname)); |
| 2439 | releaseobuf(obufp); |
| 2440 | } |
| 2441 | return simpleoname; |
| 2442 | } |
| 2443 | |
| 2444 | /* "a scroll" or "scrolls"; "a silver bell" or "the Bell of Opening" */ |
| 2445 | char * |
no test coverage detected