Custom version of Linux memory allocation functions.
Using only brk and sbrk, I rewrote the following 5 C functions: malloc, calloc, realloc, reallocarray and free.
void *malloc(size_t size);
void free(void *ptr);
void *calloc(size_t nmemb, size_t size);
void *realloc(void *ptr, size_t size);
void *reallocarray(void *ptr, size_t nmemb, size_t size);