Hi Guys,
I am trying to expand the 2d array elements but is not working as intent.
Code:
typedef struct exec_orders_t
{
char id[37];
char id2[37];
char date[33];
int queue_size;
char ** queue[1][100];
} exec_orders_t;
so in the main part I do as follow
Code:
app_main(){
struct exec_orders_t * exec_orders;
exec_orders->queue= realloc(exec_orders->queue,sizeof(char *)*100*5);
}
but that is always error, I tried to change it to a pointer but give error as well.
Can you guys give an advice on what is the error on this?