the recode of malloc function in C