liballoc is a memory allocation library written in C that provides custom memory allocation and management functionality using a singly linked list data structure.
- Allocate and manage memory using a singly linked list.
- Support for
malloc,calloc,realloc, andfreefunctions. - Thread-safe memory allocation using mutex locks.
- Built-in overflow and error handling.
- Include the
liballoc.hheader file in your source code:
#include "liballoc.h"Link your project with the compiled static or dynamic library.
- Clone this repository:
git clone https://github.com/your-username/liballoc.git
cd liballoc- Build the library:
make
This will compile the library and generate both static (liballoc_$(ARCH)-$(OS).a) and dynamic (liballoc_$(ARCH)-$(OS).so) versions in the bin directory.
Contributions are welcome! If you find any issues or want to add new features or improvements, feel free to open a pull request.
The core concepts and code structure of this library were adapted from the tutorial by Arjun Sreedharan: Memory Allocators 101 - Write a simple memory allocator.