Summary Files Commits Branches @commit @diff @stats
NameSize
Array.c1.7 KiBlog stats plain blame
Array.h386 Blog stats plain blame
BumpAlloc.c2.1 KiBlog stats plain blame
BumpAlloc.h336 Blog stats plain blame
GlobalArena.c312 Blog stats plain blame
GlobalArena.h274 Blog stats plain blame
README47 Blog stats plain blame
String.c4.4 KiBlog stats plain blame
String.h634 Blog stats plain blame
Types.h646 Blog stats plain blame
example.c968 Blog stats plain blame

foollib

A collection of C99 utilities and containers.

Memory manager

The primary concept behind this repository is the MemoryManager. It provides a generic allocation/deallocation interface, allowing you to use different allocators in different scenarios.

The standard allocator (M_std) provides a trivial wrapper over malloc and free. For convenience, M_STD is a global object, which contains the trivial wrappers. In case you do not want any special memory management, you should pass M_STD when a MemoryManager is required.