Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.85 KB

heapadd.md

File metadata and controls

64 lines (47 loc) · 1.85 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: _heapadd
_heapadd
11/04/2016
_heapadd
msvcr100.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr80.dll
msvcrt.dll
msvcr110.dll
msvcr90.dll
DLLExport
apiref
heapadd
_heapadd
_heapadd function
memory, adding to heaps
heaps, adding memory
heapadd function
4d691fe2-2763-49f4-afb1-62738b7cd3ff

_heapadd

Adds memory to the heap.

Important

This function is obsolete. Beginning in Visual Studio 2015, it is not available in the CRT.

Syntax

int _heapadd(
   void *memblock,
   size_t size
);

Parameters

memblock
Pointer to the heap memory.

size
Size of memory to add, in bytes.

Return value

If successful, _heapadd 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.

Remarks

Beginning with Visual C++ version 4.0, the underlying heap structure was moved to the C run-time libraries to support the new debugging features. As a result, _heapadd is no longer supported on any platform that is based on the Win32 API.

Requirements

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

For more compatibility information, see Compatibility in the Introduction.

See also

Memory allocation
free
_heapchk
_heapmin
_heapset
_heapwalk
malloc
realloc