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

📄 my_malloc.h

📁 这是一本操作系统辅导教材的辅助资料
💻 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 + -