Re: g_strdupv



Martin Baulig <martin home-of-linux org> writes:
> 
> is there a reason why g_strdupv() takes a `gchar **str_array'
> and not a `const gchar **str_array' ?
> 

All the gchar** in GTK/GLib are like that.

The reason is that C is stupid and will warn about passing "gchar**"
to "const gchar**'.

Havoc




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