📄 malloc.h
字号:
#ifndef _Imalloc
#define _Imalloc
#ifdef __cplusplus
extern "C" {
#if defined(__VERSION_NUMBER__) && (__VERSION_NUMBER__ >= 4400)
namespace std {
#endif
#endif
#define M_MXFAST 1
#define M_NLBLKS 2
#define M_GRAIN 3
#define M_KEEP 4
struct mallinfo {
int arena;
int ordblks;
int smblks;
int hblks;
int hblkhd;
int usmblks;
int fsmblks;
int uordblks;
int fordblks;
int keepcost;
};
#ifndef __size_t
#define __size_t
typedef unsigned int size_t;
#endif
extern void Mem_init(void * pmem_buf = 0, size_t size = 0);
extern void *Malloc(size_t);
extern void Free(void *);
extern void *realloc(void *, size_t);
extern void *calloc(size_t, size_t);
extern int mallopt(int, int);
extern struct mallinfo mallinfo(void);
#ifdef __cplusplus
}
#if defined(__VERSION_NUMBER__) && (__VERSION_NUMBER__ >= 4400)
using namespace std;
}
#endif
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -