Re: malloc vs g_malloc



On Thursday, August 2, 2001, at 01:25  PM, Tara M wrote:

What about calloc()? is there a glib equivilent for that?

Both g_malloc0 and g_new0 are similar to calloc.

Also what about gtk_*() function returns that give pointers
that need to be deallocated, do we use g_free() or free()?

Typically g_free.

    -- Darin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]