Skip to content

yvan-sraka/malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);