malloc.h
来自「自已写的一个嵌入式实时多任务抢占式操作系统。花了几个礼拜」· C头文件 代码 · 共 51 行
H
51 行
#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 __init(void);
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 + =
减小字号Ctrl + -
显示快捷键?