Mail Archives: djgpp/1999/05/24/16:30:25
El día Sun, 23 May 1999 04:29:46 +0100, "Andrew Davidson"
<andrew AT lemure DOT freeserve DOT co DOT uk> escribió:
>I need to know if, on making a call to realloc to expand the size of some
>memory I am using, will realloc copy the data from the original memory I
>pass to it if it returns a different pointer, or will I have to do that
>myself?
If realloc returns a different pointer it has already copied the
contents of the original memory block to the new location, up to the
lesser of the new and old sizes.
Regards,
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)
- Raw text -