I have an array of structs that I have defined in a header file:
struct table {
otherStruct *list[16];
}
Now I want to be able to resize this array, change the size of the array, or dynamically allocate an array that can replace (or join) the original list in “table” once a condition is met. How can I accomplish this task?
Make
listanotherStruct **:Now you can
mallocit to be as big as you want andreallocat will.