* Chdrive() changes the default drive. */
(str)
| 292 | * Chdrive() changes the default drive. |
| 293 | */ |
| 294 | void |
| 295 | chdrive(str) |
| 296 | char *str; |
| 297 | { |
| 298 | char *ptr; |
| 299 | char drive; |
| 300 | |
| 301 | if ((ptr = strchr(str, ':')) != (char *) 0) { |
| 302 | drive = toupper(*(ptr - 1)); |
| 303 | #ifdef OS2_32BITAPI |
| 304 | DosSetDefaultDisk((ULONG)(drive - 'A' + 1)); |
| 305 | #else |
| 306 | DosSelectDisk((USHORT)(drive - 'A' + 1)); |
| 307 | #endif |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | void |
| 312 | disable_ctrlP() |
nothing calls this directly
no outgoing calls
no test coverage detected