I am trying to make a python-like list in c and I tried the below code I identified the line at which the error occurs *list[i] = (char*) malloc(strlen(buffer) + 1);
*list[i] = (char*) malloc(strlen(buffer) + 1);