Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - dos_getdiskfreespace http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                           dos_getdiskfreespace

   Usage
   #include <dos.h>
   long dos_getdiskfreespace(int drive);

   Description
   Returns  a long integer of available disk space. Drive is  an  integer
   value where 0 = default, 1 = A:, 2 = B: 3 = C:, etc...

   Example
   #include <stdio.h>
   #include <dos.h>

   main()
   {

        printf("Free space on default drive is %ld bytes\n"
                  ,dos_getdiskfreespace(0));
   }

   Return Value
   Returns a long integer of available disk space.


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