Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.05 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.05 KB

Malloc

📓 Description 📓

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%

📦 Installer 📦

  • 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=
    

📝 Posibilities 📝

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