you know what this function is not used like this "process *new = malloc(sizeof(process))"

this is it , "void* malloc()"
so you should define a structure point to changes its type!