Skip to content

{EPITECH} | Second year | Unix porgraming - Memory

Notifications You must be signed in to change notification settings

Nekory23/malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

malloc

{EPITECH} | Second year | Unix porgraming - Memory

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

Your function prototypes must be the same as the ones from the C library, and must be contained in the shared library compiled by your Makefile.

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

See the subject for further details !

========================

Grade : C | Mark : 17.3

Category Percentage Tests Crash ?
basics tests 100% 3/3 x
intermediate tests 93.3% 14/15 x
hard tests 93.3% 14/15 x
bestfit tests 0% 0/1 x
exec tests 100% 2/2 x
End score 77.3% 33/36 No

Beware of -42 Epitech students !!!

About

{EPITECH} | Second year | Unix porgraming - Memory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published