* Add a slash to any name not ending in / or :. There must * be room for the /. */
| 365 | * be room for the /. |
| 366 | */ |
| 367 | void |
| 368 | append_slash(char *name) |
| 369 | { |
| 370 | char *ptr; |
| 371 | |
| 372 | if (!*name) |
| 373 | return; |
| 374 | |
| 375 | ptr = eos(name) - 1; |
| 376 | if (*ptr != '/' && *ptr != ':') { |
| 377 | *++ptr = '/'; |
| 378 | *++ptr = '\0'; |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | void |
| 383 | getreturn(const char *str) |