Hello!
I have some doubts about "realloc". I've read the man file but I'm not sure about a few of things:
- Does realloc initializate (I'm spanish I don't know if it is well write) the new space of memory??
- If I use realloc like this:
Then ptr will point to the new allocated memory or to the first positon of the array??Code:ptr = calloc(50,sizeof(char)); ptr = realloc(ptr, 100);
Thank you for your help