This function:
char ** someFunction(void) {
static char final[400][2048];
for(unsigned int i = 0; i < 400; i++) {
strcpy(final[i], "foo");
}
return final;
}
Will get the error:
Incompatible pointer types returning 'char [400][2048]' from a function with result type 'char **'
I thought a char[][] was the same thing as a char**? So why would I an error saying incompatible pointer types?
Any help would be much appreciated.