H
Henrik J
Hello group...
I have this little problem:
I'm using a struct **foo. I have allocated x foo's using malloc:
foo=(FOO**)malloc(Amount*sizeof(FOO*));
No problem....!
but my question is now: How do I realloc a **foo...!
I'm thinking of doing:
struct **tempfoo;
tempfoo=(FOO**)realloc(Amount+extraAmount,sizeof(FOO*));
foo=tempfoo;
Somehow this will not work...
Hope some of you can help...
Regards Henrik Tomra
I have this little problem:
I'm using a struct **foo. I have allocated x foo's using malloc:
foo=(FOO**)malloc(Amount*sizeof(FOO*));
No problem....!
but my question is now: How do I realloc a **foo...!
I'm thinking of doing:
struct **tempfoo;
tempfoo=(FOO**)realloc(Amount+extraAmount,sizeof(FOO*));
foo=tempfoo;
Somehow this will not work...
Hope some of you can help...
Regards Henrik Tomra