Various functions and helpers used for memory management.
#include <util/bmem.h>
Allocates memory and increases the memory leak counter.
Reallocates memory. Use only with memory that’s been allocated by
bmalloc().
Returns current number of active allocations.
Duplicates memory.
Inline function that allocates zeroed memory.
Duplicates a string of n bytes and automatically zero-terminates it.