i have a malloc implementation

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)

It is good job to write your own routine.

However, the name function malloc() has already define in the standard header of ANSI Comiler.

I just curious that this will conflict the program.

Using the line #include “malloc.h” should override the standard include files and look in your project directory for the malloc implementation. If you still get a compiler error, you may be able to #undef the standard malloc routine (I’m not sure how as I’ve never #undef’ed a function before).