| www.delorie.com/djgpp/doc/libc-2.01/libc_145.html | search |
_dos_setdrive@donoderef()
Syntax
#include <dos.h> void _dos_setdrive(unsigned int drive, unsigned int *p_drives);
This function set the current default drive based on drive (1=A:, 2=B:, etc.) and determines the number of available logical drives and fills p_drives with it.
See section _dos_getdrive.
None.
unsigned int available_drives;
/* The current drive will be A: */
_dos_setdrive(1, &available_drives);
printf("Number of available logical drives %u.\n", available_drives);
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |