📄 read.me
字号:
HEAPCHK
Many Turbo C 2.0 programmers have asked for some method which will
verify the integrity of the heap. This is for you.
To use the heap checking functions just
#include "heapchk.h"
in your source file.
There are only two functions to call:
_heapcheck() : for the near heap in small data models
maps onto _farheapcheck() in the large data models
_farheapcheck() : for the far heap
Example:
if( _heapcheck() < 0 ) puts( "Error!" );
You will have to link in the appropriate .OBJ file for the memory
model you are using. For example, if you are using the medium
memory model link HEAPCHKM.OBJ into your program. Small and tiny
model programs should link with HEAPCHKS.OBJ.
These functions can catch most heap errors but they are not infallible.
There are conceivable circumstances where the heap can be corrupted in
in such a way that these diagnostics cannot detect the problem but
they are not likely to occur.
HEAPCHK is provided on an as-is basis and is not supported by Borland.
Good luck!
David Stafford
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -