int main( int argc, char** argv) { FILE *inFilePtr = fopen(*(argv + 1), \"r\"); char *rawdata = malloc(sizeof(char) * 100); float *ary = malloc(
Try casting your malloc calls with (char *)
maybe, just maybe: ary[counter++] = atof(strtok(rawdata, ","));
ary[counter++] = atof(strtok(rawdata, ","));