Skip to content

SimonRacaud/UNIX_malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNIX_malloc

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

About

Custom memory allocation functions

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors