### _dump_allocated_delta -- Get Information about Allocated Memory

Format

>     #include <stdlib.h>     /* also in <malloc.h> */
>     void _dump_allocated_delta(int nbytes);

Language Level: Extension
_dump_allocated_delta prints information to stderr about each memory block allocated by a debug memory management function (_debug_malloc and so on) since the last call to _dump_allocated_delta or _dump_allocated.

_dump_allocated_delta and _dump_allocated print the same type of information to stderr, but _dump_allocated displays information about all blocks that have been allocated since the start of your program.

Use nbytes to specify how many bytes of each memory block are to be printed. If nbytes is a:

Negative value | Prints all bytes of each block.
0 | Prints no bytes.
Positive value | Prints the specified number of bytes or the entire block, whichever is smaller.

_dump_allocated_delta prints the information to stderr, but you can change the destination with the _set_crt_msg_handle function.

A heap-specific version of this function, _udump_allocated_delta, is also available. _dump_allocated_delta always displays information about the default heap.

To use _dump_allocated_delta and the debug versions of the memory management functions, specify the debug memory (/Tm) compiler option.

Note: The /Tm option maps all calls to memory management functions (including heap-specific versions and tiled versions for OS/2) are mapped to their debug counterparts. To prevent a call from being mapped, parenthesize the function name.

Return Value
There is no return value.

Example

_debug_calloc -- Allocate and Initialize Memory
_debug_malloc -- Allocate Memory
_dump_allocated -- Get Information about Allocated Memory
_debug_realloc -- Reallocate Memory Block
_set_crt_msg_handle -- Change Runtime Message Output Destination
_tdump_allocated_delta -- Get Information about Allocated Tiled Memory
_udump_allocated_delta -- Get Information about Allocated Memory in Heap
<malloc.h>
<stdlib.h>
/Tm compiler option