Re: g_realloc vs. realloc
- From: Jose Eusebio Roza Pando <jeroza alu uah es>
- To: "Christopher T. Lansdown" <lansdoct screech cs alfred edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_realloc vs. realloc
- Date: Mon, 13 Nov 2000 20:23:22 +0100
"Christopher T. Lansdown" escribió:
Hi,
Can anyone tell me if g_realloc has the same property of realloc
that any data in the memory is preserved (minus data outside of the newly
allocated memory if the memory was shrunk)? The documentation doesn't
mention this one way or the other.
-Chris
The data are preserved. g_realloc works fine, but you must keep in mind
that fist you must allocate the first chunk memory with g_malloc.
Eusebio.
--
"No me des las gracias a mi,
daselas a la ley de la gravedad"
MacGyver en The Simpsons
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]