Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_bheapwalk() walks through based heap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _bheapwalk()            Walks Through Based Heap

 #include    <malloc.h>

 int _bheapwalk(seg, entryinfo);
 _segment seg;                          Based heap segment
 _HEAPINFO *entryinfo;                  Heap information structure

    This function is the based heap version of _heapwalk(); it walks
    through the based heap segment as specified by seg and fills
    entryinfo, a _HEAPINFO structure that contains information about
    the based heap:

           struct _heapinfo {
              int far *_pentry;    Heap entry pointer
              size_t _size;        Size of heap entry
              int _useflag;        Entry "in-use" flag
              };

    This function returns one of these constants to report on the
    condition of the based heap:

   _HEAPBADBEGIN  _HEAPBADNODE  _HEAPBADPTR _HEAPEMPTY  _HEAPEND  _HEAPOK

   See _heapwalk() for more information.

    Returns:    _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN, _HEAPBADNODE,
                _HEAPEND, or _HEAPBADPTR.

 Portability:   Not supported by the ANSI standard.

See Also: _bcalloc() _bheapmin() _heapchk() _heapwalk()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson