After reviewing a couple of implementations for malloc, I have made my own. I tried to make it as simple as possible but still have a free function. You can check it out at [malloc.h and [malloc.c.
As a note, I am sure this implementation is not ANSI compliant or anything like this. I just wrote it because I wanted something simple. It allows you to change the heap size, block size, and the size of the array that keeps track of heap usage. The current setup is such that it makes for easy testing, but it’s not particularly compact and efficient regarding memory usage. Feel free to make changes as you see fit.](http://www.filebox.vt.edu/users/stball1/code/malloc.c)](http://www.filebox.vt.edu/users/stball1/code/malloc.h)