A
Alfonso Morra
Hi,
I want to create a container structure (array/list etc), that is expandable.
Currently, I have static arrays like this
SomeStruct *ptrArray[MAX_NUM_STRUCT] ;
What I want to do is to be able to use ptrs to ptrs like so:
SomeStruct **ptrArray ;
However, I am unsure as to how to do the ff after the declaration above:
1). Allocate memory (both initially and for subsequent data structure
increases)
2). Navigate the array - i.e. index to specific element in the array
mtia
I want to create a container structure (array/list etc), that is expandable.
Currently, I have static arrays like this
SomeStruct *ptrArray[MAX_NUM_STRUCT] ;
What I want to do is to be able to use ptrs to ptrs like so:
SomeStruct **ptrArray ;
However, I am unsure as to how to do the ff after the declaration above:
1). Allocate memory (both initially and for subsequent data structure
increases)
2). Navigate the array - i.e. index to specific element in the array
mtia