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

 #include   <alloc.h>
 #include   <stdlib.h>

 unsigned   coreleft(void);              In tiny, small, and medium models
or
 unsigned long coreleft(void);           In compact, large, and huge models

    coreleft() a measure of unused memory.  It returns different values
    of measurement depending of the size of the memory model.

    Returns:    In the large data models, coreleft() returns the amount
                of unused memory between the heap and the stack.  In the
                small data memory models, coreleft() returns the amount
                of unused memory between the stack and the data segment,
                minus 256 bytes.

See Also: allocmem() calloc() farmalloc() free() malloc()

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