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

 #include   <malloc.h>

  int _fheapwalk(entryinfo);
 _HEAPINFO *entryinfo;          Information Structure about the heap.

    This is the far heap version of _heapwalk(); it walks through the
    far heap and fills a _HEAPINFO structure:

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

    It returns one of these constants to report on the condition of the
    far heap:

              _HEAPBADBEGIN  _HEAPBADNODE _HEAPBADPTR
              _HEAPEMPTY     _HEAPEND     _HEAPOK

    See _heapwalk() for more information.

    Returns:        _HEAPBADBEGIN, _HEAPBADNODE, _HEAPBADPTR,
                    _HEAPEMPTY, _HEAPEND, or _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