* Chdrive() changes the default drive. */
| 179 | * Chdrive() changes the default drive. |
| 180 | */ |
| 181 | void |
| 182 | chdrive(const char *str) |
| 183 | { |
| 184 | char *ptr; |
| 185 | char drive; |
| 186 | if ((ptr = strchr(str, ':')) != (char *) 0) { |
| 187 | drive = toupper((uchar) *(ptr - 1)); |
| 188 | (void) _chdrive((drive - 'A') + 1); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | #if 0 |
| 193 | static int |
nothing calls this directly
no outgoing calls
no test coverage detected