append a character to a string (in place): strcat(s, {c,'\0'}); */
| 273 | |
| 274 | /* append a character to a string (in place): strcat(s, {c,'\0'}); */ |
| 275 | char * |
| 276 | strkitten(char *s, char c) |
| 277 | { |
| 278 | char *p = eos(s); |
| 279 | |
| 280 | *p++ = c; |
| 281 | *p = '\0'; |
| 282 | return s; |
| 283 | } |
| 284 | |
| 285 | /* truncating string copy */ |
| 286 | void |
no test coverage detected