MemManager is a custom implementation of a memory manager that provides an alternative to the standard malloc, realloc, free, and calloc functions in C. This library is designed for educational purposes and to demonstrate memory management concepts.
- Custom
mallocimplementation - Custom
reallocimplementation - Custom
freeimplementation - Custom
callocimplementation - Memory block splitting and coalescing
- Simple debugging utilities
- GCC or any C compiler
To build the library, navigate to the root directory and run:
makeTo build and run the tests, navigate to the tests directory and run:
make
./test_MemMangTo build and run the example program, navigate to the examples directory and run:
make
./exampleInclude the header file in your project:
#include "MemMang.h"Then, use the custom memory management functions as you would use the standard ones:
void *ptr = my_malloc(100);
ptr = my_realloc(ptr, 200);
my_free(ptr);This project is licensed under the MIT License - see the LICENSE file for details.