Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
_heapmin
Releases unused heap memory to the operating system.
int _heapmin( void );
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 errno
, _doserrno
, _sys_errlist
, and _sys_nerr
.
The _heapmin
function minimizes the heap by releasing unused heap memory to the operating system. If the operating system doesn't support _heapmin
(for example, Windows 98), the function returns -1 and sets errno
to ENOSYS
.
By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.
Routine | Required header | Optional header |
---|---|---|
_heapmin |
<malloc.h> | <errno.h> |
For more compatibility information, see Compatibility.
Memory allocation
free
_heapadd
_heapchk
_heapset
_heapwalk
malloc
Please sign in to use this experience.
Sign in