📄 tst_calloc.c
字号:
#include <stdlib.h>
#include <stdio.h> /* for printf */
void tst_calloc (void) {
int xdata *p; /* ptr to array of 100 ints */
p = calloc (100, sizeof (int));
if (p == NULL)
printf ("Error allocating array\n");
else
printf ("Array address is %p\n", (void *) p);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -