Skip to content

BastienBoymond/my_malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Recode of malloc in C

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published