Recode of the malloc function from the libc