Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with 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);
 unsigned char 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'.  (0 =
    default drive, 1 = drive A, etc.)  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:     Nothing.  On error, 'df_sclus' in the 'dfree'
                    structure is set to -1.

   Portability:     MS-DOS only.


See Also: getfat()

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