getdfree() Get Disk Free Space
#include <dos.h>
void getdfree(drive,dfreep);
int drive; Drive specifier
struct dfree *dfreep; Pointer to structure
getdfree() gets disk information from the drive specified by 'drive'
and fills in the 'dfree' structure pointed to by 'dfreep'. The
'dfree' structure is defined as:
struct dfree {
unsigned df_avail; /* Available clusters */
unsigned df_total; /* Total clusters */
unsigned df_bsec; /* Bytes per sector */
unsigned df_sclus; /* Sectors per cluster */
};
Returns: There is no return value. On error, 'df_sclus' in the
'dfree' structure is set to -1.
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster