The Complete SPRLIB & ANNLIB

memory_monitor

- return the total amount of dynamically allocated memory

SYNOPSIS

unsigned int memory_monitor ()

ARGUMENTS

None.

RETURNS

The total amount of memory allocated using one of the ...alloc_monitor functions below in bytes.

FUNCTION

The routine traverses the linked list of MALINFO structures (topmem, endmem - see MONITOR-ALLOCATION-variables) and sums the sizes of the allocated blocks.

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