Re: please excuse very basic questions: gchar and g_free()
- From: Jan-Marek Glogowski <glogow fbihome de>
- To: "F. Kater" <f kater2 gmx net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: please excuse very basic questions: gchar and g_free()
- Date: Thu, 25 Nov 2004 10:13:18 +0100 (CET)
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]