heapmin()

Releases the heap memory back to the system.

  #include <extras/extras_malloc.h>
  
  int heapmin(void);    
Remarks

This function releases your program's heap memory to the system. After calling this function, a program's behavior is undefined if it refers to memory allocated with heap allocation functions like _ malloc() and _ realloc(). The function returns zero if successful. If it fails, the function returns -1 and sets errno.

This facility is not specified in the ISO/IEC standards.

It is an EWL extension of the standard libraries.