| 48 | staticfn const char *blengr(void); |
| 49 | |
| 50 | char * |
| 51 | random_engraving(char *outbuf, char *pristine_copy) |
| 52 | { |
| 53 | const char *rumor; |
| 54 | |
| 55 | /* a random engraving may come from the "rumors" file, |
| 56 | or from the "engrave" file (formerly in an array here) */ |
| 57 | if (!rn2(4) || !(rumor = getrumor(0, pristine_copy, TRUE)) || !*rumor) |
| 58 | (void) get_rnd_text(ENGRAVEFILE, pristine_copy, rn2, MD_PAD_RUMORS); |
| 59 | |
| 60 | Strcpy(outbuf, pristine_copy); |
| 61 | wipeout_text(outbuf, (int) (strlen(outbuf) / 4), 0); |
| 62 | return outbuf; |
| 63 | } |
| 64 | |
| 65 | /* Partial rubouts for engraving characters. -3. */ |
| 66 | static const struct { |
no test coverage detected