Original Post
hello
i just wondered if it is possible to allocate another particle to my dynamic array
i have something like this
list *pList=NULL
pList=(list*)malloc(arraysize*sizeof(list));
so i have an array of
pList[0]->pList[arraysize-1];
how can i add another arrayelement to pList
that way?
oldarraysize=arraysize;
arraysize++;
pList[arraysize-1]=(list*)malloc(sizeof(list));
so i have one more element
would this work or do i have to set the ammount of elements i need when i allocate the memory at the start up?
thx for helping