This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/dgetdriv.c

12 lines
183 B
C

#include <stdio.h>
#include <dos.h>
void main()
{
unsigned drive;
_dos_getdrive( &drive );
printf( "The current drive is %c\n",
'A' + drive - 1 );
}