Re: g_realloc vs. realloc



"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]