farcoreleft
raw OCR
Returns a measure of unused memory in far heap.
Defined in header <alloc.h>
Syntax
#include <alloc.h>
unsigned long farcoreleft(void);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ |
Remarks
farcoreleft returns a measure of the amount of unused memory in the far heap beyond the highest allocated block.
A tiny model program cannot make use of farcoreleft.
Return value
farcoreleft returns the total amount of space left in the far heap, between the highest allocated block and the end of available memory.
See also
Example
include <stdio.h>
#include <alloc.h>
int main(void)
{
printfC'The difference between the highest allocated block in the far\n");
printfC'heap and the top of the far heap is: %lu bytes\n", farcoreleft ());
return 0;
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/alloc.h/farcoreleft/
· short form /3.1/farcoreleft/