I want to allocate memory using malloc and check that it succeeded. something like:
malloc
if (!(new_list=(vlist)malloc(sizeof (var_list)))) return -1;
how do I check success?