The Complete SPRLIB & ANNLIB

status_monitor

- print a memory allocation status report

SYNOPSIS

void status_monitor (s)

ARGUMENTS

int s If TRUE, the routine will always print a message; if FALSE, the routine will be silent if no blocks of memory are allocated.

RETURNS

Nothing.

FUNCTION

This routine can be used (at the end of a program) to print a list of allocated blocks of memory still in use, using the linked list of MALINFO structures. This may be of help in debugging practice and in preventing memory leakage. For each block still allocated, the name of the source file and the line in that file from which the allocation routine was called is printed, as is the size in bytes. Finally, the total number of bytes still allocated is printed.

NOTE

The routine can only report about blocks of memory allocated using one of the ...alloc_monitor functions below.

SEE ALSO

MONITOR-ALLOCATION-functions, malloc_monitor, calloc_monitor , realloc_monitor, free_monitor, memory_monitor

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998