The malloc() function allocates size bytes and returns a pointer to the allocated memory.
The free() function frees the memory space pointed to by ptr.
The calloc() function allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory.
The realloc() function changes the size of the memory block pointed to by ptr to size bytes.
For a Epitech Projet we need to recode it !
FINAL NOTATION 100%
-
Clone the repository:
https://github.com/BastienBoymond/my_malloc.git
-
Compile the project:
make
-
Lauch the project:
export LD_PRELOAD=$PWD/libmy_malloc.so
-
Stop the project:
export LD_PRELOAD=
My malloc/free/calloc/realloc can do the following things:
- Execute simple malloc
- Execute complex malloc
- Execute linux basic command like (ls, cat, tree, bc)
- Launch Spotify
- Launch Discord
- Launch Firefox / Chrome
- Sometimes Launch Ncurses