I have a 3D array as such
char **arr[1];
I have it dynamically allocated like that:
*arr = calloc(10, sizeof(char*)); // Will be using 0-9
for(i = 0; i < 10; i ++)
*arr[i] = malloc(3); // will be using 0-2
It crashes. Even though, I can't provide you with the entire library, in which I read/write to that array, but the answer of the question is the allocation correct, will help me debug and throw out the possibility of wrong or impossible allocation.