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

Function chdrive

sys/windows/windsys.c:181–190  ·  view source on GitHub ↗

* Chdrive() changes the default drive. */

Source from the content-addressed store, hash-verified

179 * Chdrive() changes the default drive.
180 */
181void
182chdrive(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
193static int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected