Skip to content

BlueDream145/malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

malloc

Using only brk/sbrk and your amazing mind, rewrite the 3 following C library functions: malloc, free and realloc.

Do not even think about using the malloc function. Your function prototypes must be the same as the ones from the C library, and must be contained in the library compiled by your Makefile. void *malloc(size_t size); void *realloc(void *ptr , size_t size); void free(void *ptr);

USAGE :

./LD_PRELOAD=./libmy_malloc.so {command}

EXAMPLE :

./LD_PRELOAD=./libmy_malloc.so ./ls

./LD_PRELOAD=./libmy_malloc.so ./ls -R

About

Malloc function in C, Epitech Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published