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.

Portability

not ANSI, not POSIX

Example

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


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