?? heapnode.c
字號:
#include <stdio.h>
#include <alloc.h>
void main(void)
{
char *buffer, *second_buffer;
int i, state;
buffer = malloc(100);
second_buffer = malloc(100);
state = heapchecknode(buffer);
if (state == _USEDENTRY)
printf("buffer is ok\n");
else
printf("buffer is not ok\n");
state = heapchecknode(second_buffer);
if (state == _USEDENTRY)
printf("second_buffer is ok\n");
else
printf("second_buffer is not ok\n");
for (i = 0; i <= 100; i++)
buffer[i] = i;
state = heapchecknode(buffer);
if (state == _USEDENTRY)
printf("buffer is ok\n");
else
printf("buffer is not ok\n");
state = heapchecknode(second_buffer);
if (state == _USEDENTRY)
printf("second_buffer is ok\n");
printf("second_buffer is not ok\n");
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -