|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Updated: July 2009
Releases unused heap memory to the operating system.
If successful, _heapmin returns 0; otherwise, the function returns –1 and sets errno to ENOSYS.
For more information about this and other return codes, see _doserrno, errno, _sys_errlist, and _sys_nerr.
The _heapmin function minimizes the heap by releasing unused heap memory to the operating system.
If the operating system does not support _heapmin, the function returns –1 and sets errno to ENOSYS.
For compatibility information, see Compatibility in the Introduction.
Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.