Hi, I have a thought that i'd like to clear out.
I allocate memory say;
char* p = malloc(20);
p = p + 5;
//do stuff
free(p);
Now I know this is wrong, but the question is, does the call free ignores the request? Or does it just free 20 bytes from where ever it is pointing? And one last thing, is it valid to move the allocated pointer?
Thanks
Indy