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>_nheapwalk() walks through near heap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _nheapwalk()            Walks Through Near Heap

 #include   <malloc.h>

 int _nheapwalk(entryinfo);
 _HEAPINFO *entryinfo;

    _nheapwalk() is the near heap version of _heapwalk(); it walks
    through the near heap and fills a _HEAPINFO structure with
    information:

           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 details.

    Returns:    One of the following constants:
                _HEAPBADBEGIN  _HEAPBADNODE  _HEAPBADPTR
                _HEAPEMPTY     _HEAPEND      _HEAPOK

 Portability:   Not supported by the ANSI standard.


See Also: _heapchk() _heapset() _heapwalk()

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