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++ 3.0r4 - <b>dos_getdiskfreespace</b> 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: and so on.

Example 


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

   int main()
   {

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

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