Re: Abuse of 'const' ?



const is left binding unless there is nothing to the left - then it binds to the right.


2013/4/8 John Emmas <johne53 tiscali co uk>
On 08/04/2013 14:09, Ryan Lortie wrote:

A 'const gchar **' is (in this case) an array of 'const gchar *' (ie: const string pointers).  It is the strings that are immutable.  The array itself is fully writable, and indeed you should free what g_variant_get_bytestring_array() returns to you, using g_free().


Good clarification Ryan.  Thanks!

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list



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