📄 tst_free.c
字号:
#include <stdlib.h>
#include <stdio.h> /* for printf */
void tst_free (void) {
void * mbuf;
printf ("Allocating memory\n");
mbuf = malloc (1000);
if (mbuf == NULL) {
printf ("Unable to allocate memory\n");
}
else {
free (mbuf);
printf ("Memory free\n");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -