Thursday, February 19, 2015

Learning C Functions : coreleft ( Dos Only )

C Programming :
Function
:
coreleft

Syntax
#include <alloc.h>

In the tiny, small, and medium models:

unsigned coreleft(void);

In the compact, large, and huge models:

unsigned long coreleft(void);

Description

coreleft returns a measure of RAM memory not in use. It gives a different measurement value, depending on whether the memory model is of the small
data group or the large data group .

Return Value

In the small data models, coreleft returns the amount of unused memory between the top of the heap and the stack. In the large data models, coreleft
returns the amount of memory between the highest allocated block and the end of available memory.

No comments:

Post a Comment