It says
If the space cannot be allocated, the object remains unchanged.
If that was your question?
Furthermore, read this, I think it should help you: realloc() info
Bottom point is, you can easily determine if memory has been copied to another place:
//ptr is already allocated with malloc or calloc
Type *temp;
int new_size = 1000*sizeof(Type);
temp = realloc(ptr, new_size);
if (temp == ptr)
printf ("Memory hasn't been moved\n");
else{
printf ("Memory has been moved to another location\n");
ptr = temp;
}
//do your buisness with ptr