[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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.

See Also: getfat()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson