⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 realloc.c

📁 minimal python variant for small footprint apps like embedded apps
💻 C
字号:
#include "config.h"#include <stdlib.h>#include <PalmOS.h>#include <PalmCompatibility.h>void *  MemRealloc(void * p, UInt32 size);#ifndef USE_DLMALLOCextern long malloc_ref_count;extern long bytes_allocated;void *realloc( void *ptr, size_t size ) {	size_t old_size = MemPtrSize(ptr);	void *p;	p = MemRealloc(ptr, size);	if (p == NULL)		return NULL;	bytes_allocated += size;	bytes_allocated -= old_size;	DUMP_TO_HOST("r-", ptr, old_size);	DUMP_TO_HOST("r+", p,   size);	return p;}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -