📄 free.c
字号:
#include "config.h"#include <stdlib.h>#include <PalmOS.h>#include <PalmCompatibility.h>#include <stdio.h>#ifndef USE_DLMALLOCextern long malloc_ref_count;extern long bytes_deallocated;void free( void *ptr ){ size_t size = MemPtrSize(ptr); Err res = MemPtrFree(ptr); if (res) printf("free: error freeing memory = %d\n", res); malloc_ref_count--; bytes_deallocated += size; DUMP_TO_HOST("d", ptr, size); }#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -