return a name converted to possessive */
| 342 | |
| 343 | /* return a name converted to possessive */ |
| 344 | char * |
| 345 | s_suffix(const char *s) |
| 346 | { |
| 347 | static char buf[BUFSZ]; |
| 348 | |
| 349 | Strcpy(buf, s); |
| 350 | if (!strcmpi(buf, "it")) /* it -> its */ |
| 351 | Strcat(buf, "s"); |
| 352 | else if (!strcmpi(buf, "you")) /* you -> your */ |
| 353 | Strcat(buf, "r"); |
| 354 | else if (*(eos(buf) - 1) == 's') /* Xs -> Xs' */ |
| 355 | Strcat(buf, "'"); |
| 356 | else /* X -> X's */ |
| 357 | Strcat(buf, "'s"); |
| 358 | return buf; |
| 359 | } |
| 360 | |
| 361 | /* construct a gerund (a verb formed by appending "ing" to a noun) */ |
| 362 | char * |
no test coverage detected