qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_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.
                                    -♦-