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


setdisk

Syntax

#include <dir.h>

int setdisk(int drive);

Description

This function sets the current disk (0=A).

See also section getdisk.

Return Value

The highest drive actually present that the system can reference.

Portability

not ANSI, not POSIX

Example

printf("There are %d drives\n", setdisk(getdisk()));


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