📄 my_malloc.h
字号:
#include <stdlib.h>typedef long Align; /* for alignment to long boundary */union header { /* block header: */ struct { union header *next; /* next block if on Free list */ unsigned int size; /* size of this block */ } s; Align x; /* force alignment of blocks */};typedef union header Header;#define NALLOC 10 /* minimum #units to request */static Header* morecore(unsigned int nu);void* Malloc(unsigned int nbytes);void Free(void *ap);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -