MCPcopy Create free account
hub / github.com/NetHack/NetHack / chdrive

Function chdrive

outdated/sys/os2/os2.c:294–309  ·  view source on GitHub ↗

* Chdrive() changes the default drive. */

(str)

Source from the content-addressed store, hash-verified

292 * Chdrive() changes the default drive.
293 */
294void
295chdrive(str)
296char *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
311void
312disable_ctrlP()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected