mem.c
来自「harvest是一个下载html网页得机器人」· C语言 代码 · 共 35 行
C
35 行
/*** Copyright (C) 1995, Enterprise Integration Technologies Corp. ** All Rights Reserved.** Kevin Hughes, kevinh@eit.com ** 3/11/94*/#include "swish.h"#include "mem.h"#include "error.h"/* Error-checking malloc()...*/void *emalloc(i) int i;{ void *p; if ((p = (void *) malloc(i)) == NULL) progerr("Ran out of memory (could not allocate enough)!"); return p;}void *erealloc(ptr, i) void *ptr; int i;{ void *p; if ((p = (void *) realloc(ptr, i)) == NULL) progerr("Ran out of memory (could not reallocate enough)!"); return p;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?