Re: please excuse very basic questions: gchar and g_free()



Hi

<snip a lot of questions about dynamic memory and gchar>

http://www.cs.cf.ac.uk/Dave/C/node11.html#SECTION001100000000000000000

#define g_new(struct_type, n_structs)           \
    ((struct_type *) g_malloc (((gsize) sizeof (struct_type)) * ((gsize)
(n_structs))))

malloc and free are about allocation a number of bytes - they don't care
about types.

HTH

Jan-Marek



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