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


getdisk

Syntax

#include <dir.h>

int getdisk(void);

Description

Gets the current disk (0=A).

See section setdisk.

Return Value

The current disk number.

Example

printf("This drive is %c:\n", getdisk() + 'A');


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

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