* Add a backslash to any name not ending in /, \ or : There must * be room for the \ */
| 129 | * be room for the \ |
| 130 | */ |
| 131 | void |
| 132 | append_slash(char *name) |
| 133 | { |
| 134 | char *ptr; |
| 135 | |
| 136 | if (!*name) |
| 137 | return; |
| 138 | ptr = name + (strlen(name) - 1); |
| 139 | if (*ptr != '\\' && *ptr != '/' && *ptr != ':') { |
| 140 | *++ptr = '\\'; |
| 141 | *++ptr = '\0'; |
| 142 | } |
| 143 | return; |
| 144 | } |
| 145 | |
| 146 | void |
| 147 | getreturn(const char *str) |
no outgoing calls
no test coverage detected