Alright, I understand that
now does that apply for needing 2 elements per line
am I not allocating enough to have 2 elements(each with 30 chars) on x number lines?
should I
Code:char ***c2names; c2names = (char ***) malloc ( amt_of_lines * sizeof(char **); for(i = 0; i < amt_of_lines; i++) { c2names[i] = (char **) malloc(columns * sizeof(char *); c2names[i][0] = (char *) malloc(30 * sizeof(char); c2names[i][1] = (char *) malloc(30 * sizeof(char); }