| www.delorie.com/djgpp/doc/libc-2.01/libc_321.html | search |
#include <dos.h> void getdfree(unsigned char drive, struct dfree *ptr);
This function gets information about the size and fullness of the given drive (0=default, 1=A:, etc). The return structure is as follows:
struct dfree {
unsigned df_avail; /* number of available clusters */
unsigned df_total; /* total number of clusters */
unsigned df_bsec; /* bytes per sector */
unsigned df_sclus; /* sectors per cluster */
};
None.
struct dfree d; getdfree(3, &d); /* drive C: */
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |