📄 xcalloc.c
字号:
/* $Id: xcalloc.c,v 1.7 2005/03/16 00:52:05 relson Exp $ *//** NAME:* xcalloc.c -- front-end to standard heap manipulation routines, with error checking.** AUTHOR:* Gyepi Sam <gyepi@praxis-sw.com>**/#include "config.h"#include "xmalloc.h"void*xcalloc(size_t nmemb, size_t size){ void *ptr; ptr = bf_calloc(nmemb, size); if (ptr == NULL && (nmemb == 0 || size == 0)) ptr = bf_calloc(1, 1); if (ptr == NULL) xmem_error("xcalloc"); return ptr;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -