Resets information collected by the malloc subsystem.
#include <malloc.h> void reset_malloc_log (addr) void *addr;
The reset_malloc_log subroutine resets the record of currently active malloc allocations stored by the malloc subsystem. These records are stored in malloc_log structures, which are located in the process heap. Only records corresponding to the heap of which addr is a member are reset, unless addr is NULL, in which case records for all heaps are reset. The addr parameter must be a pointer to space allocated previously by the malloc subsystem or NULL, otherwise no information is reset and the errno global variable is set to EINVAL.
addr | Pointer to space allocated previously by the malloc subsystem |
malloc Subroutine, get_malloc_log Subroutine, and get_malloc_log_live Subroutine in AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1