www.delorie.com/djgpp/doc/libc/libc_389.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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

ANSI/ISO C No
POSIX No

Example

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

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004