qc.hlp (Table of Contents; Topic list)
_heapchk Functions
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _heapchk functions help debug heap-related problems by
     checking for minimal consistency of the heap.
 
     Each function checks a particular heap, as listed below:
 
     Function      Heap Checked
 
     _heapchk      Depends on data model of program
     _bheapchk     Based heap specified by <seg> value
     _fheapchk     Far heap (outside default data segment)
     _nheapchk     Near heap (inside default data segment)
 
     In large data models (that is, compact-, large-, and huge-model
     programs), _heapchk maps to _fheapchk. In small data models
     (tiny-, small-, and medium-model programs), _heapchk maps to
     _nheapchk.
 
     Return Value
 
     All four routines return an integer value that is one of the
     following manifest constants (defined in MALLOC.H): _HEAPOK,
     _HEAPEMPTY, _HEAPBADBEGIN, _HEAPBADNODE.
                                    -♦-