I have an array inside a struct like so:
typedef struct mystruct{
const char *myarr[30];
} mystruct;
I need to grow this array later in the program to 60 elements by creating a new array, duplicating the content, and then changing myarr to point to the new array.
I have tried the following:
const char newtable[n];
s->*myarr = newtable;
But gcc complains:
error: incompatible types in assignment
Any ideas as to the right way to accomplish this?
->*notation - but that is a C++ operator, not a C operator. Typo?