reset_malloc_log Subroutine

Purpose

Resets information collected by the malloc subsystem.

Syntax

#include <malloc.h>
void reset_malloc_log (addr)
void *addr;

Description

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.

Parameters

Item Description
addr Pointer to space allocated previously by the malloc subsystem