What do you mean by that? In my code, realloc() ordered 10 NODEs instead of 1.
Once I have you here: When I wish to return a string from a function, does it have to be a static variable? In...
Type: Posts; User: UniMord
What do you mean by that? In my code, realloc() ordered 10 NODEs instead of 1.
Once I have you here: When I wish to return a string from a function, does it have to be a static variable? In...
Thanks Deckard.
I find that if I used realloc on ptr1, ptr2 gets left behind pointing to the original block. Normally, realloc frees before abandoning, so do I correctly assume that ptr2 is now...
Once I've freed allocated memory, is there any way of testing the block? free() has no return and I need to be able to ensure the memory has in fact been freed.
Also, if I do this:
NODE *ptr1,...