/malloc

C dynamic memory allocation functions without dependencies.

Primary LanguageCGNU General Public License v3.0GPL-3.0

malloc Build Status

This library implement C dynamic memory allocation functions. It use first fit algorithm with a looped double chained list of blocks. It use no dependencies.

Memory allocator:

void* malloc(size_t size);

Free allocated memory:

void free(void *ptr);

Allocate and initialize memory:

void* calloc(size_t number, size_t size);

Change space of allocated memory:

void* realloc(void *ptr, size_t size);