home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource3
/
187_01
/
getdrv.c
< prev
next >
Wrap
Text File
|
1985-12-30
|
671b
|
21 lines
/*@*****************************************************/
/*@ */
/*@ getdrv - get the currently logged in drive id. */
/*@ */
/*@ Usage: getdrv(); */
/*@ Returns an integer sized value with the */
/*@ numeric value of the drive. E.G. C: */
/*@ is 0x03. */
/*@ */
/*@*****************************************************/
int getdrv()
{
#asm
MOV AH,19h
INT 21h
MOV AH,0
#endasm
return;
}