@CHIP-RTOS C Library - Helper Functions


Reentrant farcoreleft() for use with multitasking.

unsigned long farcoreleft (void);

Return Value

Amount of heap memory available


This function provides semaphore protection around the compiler's standard C-library farcoreleft() function.

This function is available only with the Paradigm Beck IPC Edition compiler.    Refer to the reentrant malloc() description for more details on how to install this version of coreleft() into your program.

Refer to your compiler's standard library documentation for a description of this API's basic functionality.

For COMPACT, LARGE and HUGE memory models, this function must be used instead of coreleft() in order to have the heap semaphore protection.   The coreleft() name will reach the same RTL function, but without the surrounding semaphore protection.

See Also

Supported since or modified in @CHIP-RTOS version


This API List
List of C Libraries
@CHIP-RTOS Main Index

End of document