1 Star 0 Fork 0

liuyuyan6100/libxml2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
testOOMlib.h 568 Bytes
一键复制 编辑 原始数据 按行查看 历史
Nick Wellnhofer 提交于 2022-03-04 09:31 +08:00 . Remove unneeded #includes
#ifndef TEST_OOM_LIB_H
#define TEST_OOM_LIB_H
#include <stddef.h>
void* test_malloc (size_t bytes);
void* test_realloc (void *memory,
size_t bytes);
void test_free (void *memory);
char* test_strdup (const char *str);
/* returns true on success */
typedef int (* TestMemoryFunction) (void *data);
/* returns true on success */
int test_oom_handling (TestMemoryFunction func,
void *data);
/* get number of blocks leaked */
int test_get_malloc_blocks_outstanding (void);
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuyuyan6100/libxml2.git
git@gitee.com:liuyuyan6100/libxml2.git
liuyuyan6100
libxml2
libxml2
master

搜索帮助