_getdrive

Description

Gets the current disk drive.

#include <direct.h>

int _getdrive( void );

Remarks

The _getdrive function returns the current (default) drive (1=A, 2=B, etc.).

Return Value

The return value is stated above. There is no error return.

Compatibility

Standards:None

16-Bit:DOS, QWIN, WIN, WIN DLL

32-Bit:DOS32X

See Also

_chdrive, _dos_getdrive, _dos_setdrive, _getcwd, _getdcwd

Example

See the example for _getdcwd.