14 points · by mynameislegion · 10y ago · 2 comments
You want to traverse the previously-freed blocks in case there was a block that you can fit the newly malloced/calloced/relloced block.
Memory Allocators 101 - Write a simple memory allocator
Code related to this article: github.com/arjun024/memalloc This article is about writing a simple memory allocator in C. We will implement malloc(), calloc(), realloc() and free(). This is a beginner...
Tumblr