testoomlib.h
来自「图片显示,电脑光于望技术湖连望键往,网络」· C头文件 代码 · 共 27 行
H
27 行
#ifndef TEST_OOM_LIB_H#define TEST_OOM_LIB_H#include <config.h>#ifdef HAVE_SYS_TYPES_H#include <sys/types.h>#endifvoid* 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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?