Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

heap_check(3) Guardian Native C Library Calls Reference Manual
NAME
heap_check - Checks the consistency of the run-time heap
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRESRL
G-series native OSS processes: /G/system/sysnn/zcresrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <stdlib.h>
void heap_check(void);
PARAMETERS
None.
DESCRIPTION
The heap_check() function checks the consistency of the run-time heap used by the memory-
management functions calloc(), free(), malloc(), and realloc().Ifheap_check() discovers an
inconsistency in the run-time heap, it prints an error message to standard error and terminates
process execution. This function can be called at any time during program execution.
RETURN VALUES
None. This function does not return.
ERRORS
None. This function does nto set errno.
RELATED INFORMATION
Functions: exit(3), heap_check_always(3), heap_min_block_size(3).
STANDARDS CONFORMANCE
The heap_check() function is an HP extension to the XPG4 Version 2 specification.
382 Hewlett-Packard Company 527192-018