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>farcoreleft() return measure of unused memory in far heap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 farcoreleft()           Return Measure of Unused Memory in Far Heap

 #include   <alloc.h>

 unsigned long farcoreleft(void);

    farcoreleft() returns the total amount of unused memory in the far
    heap, between the highest allocated block and the end of memory,
    expressed in bytes.

       Returns:     A measure of unused memory, as described above.

   -------------------------------- Example ---------------------------------

    The following statement reports the size of available memory.

           #include <alloc.h>           /* for farcoreleft() */
           #include <stdio.h>           /* for printf */

           main()
           {
               printf("%ld bytes left",farcoreleft());
           }


See Also: farmalloc() farfree() farmalloc() farrealloc()

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