<malloc.h>

The <malloc.h> include file defines the following memory allocation functions:

_alloca _debug_heapmin free _heap_walk
calloc _debug_realloc _heapchk malloc
_debug_calloc _dump_allocated_delta _heapmin _msize
_debug_free _heap_check _heapset realloc
_debug_malloc      

It also includes a definition for the type size_t.

Heap-specific versions of the memory management functions are defined in <umalloc.h>.

Note: To use the debug functions, you must compile with the debug memory (/Tm) option.

<malloc.h> also defines a number of far and near pointer macros to the corresponding standard library function. These macros are:

_fcalloc _ffree
_fheapmin _fmalloc
_frealloc _ncalloc
_nfree _nheapmin
_nmalloc _nrealloc


<stdlib.h>