Reference

_getdrive(3w)

NAME

_getdrive (MSVCRT.@)

SYNOPSIS

int CDECL _getdrive
(
)

DESCRIPTION

Get the current drive number.

PARAMS

None.

RETURNS

Success: The drive letter number from 1 to 26 ("A:" to "Z:").

Failure: 0.

IMPLEMENTATION

Defined in "msvcrt.h".

Implemented in "dlls/msvcrt/dir.c".

Debug channel "msvcrt".

History