I'm trying to allocate memory for an array of pointers to structures with:
size is a parameter of the function this command is in, and it's simple the size (number of rows) of the array. My problem is that I'm getting this message when I try to compile my code: error: variable-sized object may not be initializedCode:struct onode *onodeArray[size] = (struct onode**)calloc(size,sizeof(struct onode*));