bo1led-owl/spalloc
Toy allocator with C interface written in Zig
Toy allocator written in Zig, inspired by Sys.Pro C programming language course task.
spalloc.h provides spmalloc, spcalloc, sprealloc and spfree functions. These functions have the same API as the standard C malloc, calloc, realloc and free.
Just use zig build with standard optimization options. By default it builds a static library.
To build the shared version, pass -Dshared option.