堆常量Heap Constants

语法Syntax


#include <malloc.h>  

备注Remarks

这些常量提供表示堆状态的返回值。These constants give the return value indicating status of the heap.

常量Constant 含义Meaning
_HEAPBADBEGIN 初始头信息未找到或无效。Initial header information was not found or was invalid.
_HEAPBADNODE 找到错误节点,或堆已损坏。Bad node was found, or heap is damaged.
_HEAPBADPTR _HEAPINFO 结构的 _pentry 字段不包含堆中的有效指针(仅限 _heapwalk 例程)。_pentry field of _HEAPINFO structure does not contain valid pointer into heap (_heapwalk routine only).
_HEAPEMPTY 尚未初始化堆。Heap has not been initialized.
_HEAPEND 已成功到达堆的结尾处(仅限 _heapwalk 例程)。End of heap was reached successfully (_heapwalk routine only).
_HEAPOK 堆是一致的(仅限 _heapset_heapchk 例程)。Heap is consistent (_heapset and _heapchk routines only). 目前未出现错误;_HEAPINFO 结构包含下一个条目的信息(仅限 _heapwalk 例程)。No errors so far; _HEAPINFO structure contains information about next entry (_heapwalk routine only).

另请参阅See Also

_heapchk _heapchk
_heapset _heapset
_heapwalk _heapwalk
全局常量Global Constants