Re: problem with g_io_channel_read_to_end ()
- From: Szalai Ferenc <szferi angel elte hu>
- To: gtk-list <gtk-list gnome org>
- Subject: Re: problem with g_io_channel_read_to_end ()
- Date: 27 Mar 2003 14:27:57 +0100
> Sure it helps !!it works fine, thanks you.
> but, from where did you find that?
Read the source :)
> and why use a GError ** can' t work ? though I allocated memory to it.
If you want to use GError ** you probably need like this:
GError **error = g_new0(GError *,1);
*error = NULL;
glib_function_call (arg1, error);
if (*error != NULL) {
/* Error handling */
g_error_free (*error);
g_free (error);
}
(I didn't try it so be careful)
Regards,
Ferenc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]