My goal is to have a an array of arrays so I can get the size from another variable and append as many objects as I need in a for loop later.
Sorta like this:
char *test[3][1][3] = {
{"FOO", "BAR"},
{"BIZ", "NIZ"},
{"BIZ", "NIZ", "NAZ"}
};
printf("\nTESTNG: \n");
printf("TEST: %s\n", test[0][0][0]);
printf("TEST: %s\n", test[0][0][1]);
// this is the only value that is dynamic, the rest are key value pairs that are being inserted
// like FOO : BAR
// this function returns an integer
int array_size = someotherfunction();
char** people = (char**) malloc(array_size);
for(i = 0; i < array_size; i++){
people[i] = (char*)malloc(2);
}
people[0][0][0] = "FOO";
printf("Person: %s", people[0][0][0]);