Source: https://wiki-prog.infoprepa.epita.fr/images/0/04/Malloc_tutorial.pdf