www.delorie.com/djgpp/doc/libc-2.01/libc_137.html   search  
Go to the first, previous, next, last section, table of contents.


_dos_getdrive

_dos_getdrive

@donoderef()

Syntax

#include <dos.h>

void _dos_getdrive(unsigned int *p_drive);

Description

This function determine the current default drive and writes this value into p_drive (1=A:, 2=B:, etc.).

See section _dos_setdrive.

Return Value

None.

Example

unsigned int drive;

_dos_getdrive(&drive);
printf("The current drive is %c:.\n", 'A' - 1 + drive);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997