Share via


_heapmin

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _heapmin.

Releases unused heap memory to the operating system.

Syntax

int _heapmin( void );  

Return Value

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.

Remarks

The _heapmin function minimizes the heap by releasing unused heap memory to the operating system. If the operating system does not support _heapmin(for example, Windows 98), the function returns –1 and sets errno to ENOSYS.

Requirements

Routine Required header Optional header
_heapmin <malloc.h> <errno.h>

For more compatibility information, see Compatibility in the Introduction.

.NET Framework Equivalent

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

See Also

Memory Allocation
free
_heapadd
_heapchk
_heapset
_heapwalk
malloc