Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>getdfree() get disk free space</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson