📄 heap.h
字号:
#ifndef _HEAP_H_#define _HEAP_H_// How much space to reserve for the stack#define STACKSIZE (8*1024)// Will an allocation of num bytes be successful?// We need this because we dont do any deallocationextern int checkalloc(unsigned int num); // Allocate so much spaceextern void * malloc(unsigned int num); // This is a nop for now may be future implementations will actually do somethingextern void free(void *); // Dealloc space. #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -