Problem with GList



Hi,

does anyone know why i can't do this:

     list = g_list_append(list, "ftp.xpto.org");

??

i saw this example on the GLib Documentation! the only way that works is:

     char[] xpto = "ftp.xpto.org";
     list = g_list_append(list, xpto);

Thanks for any help..
Afonso



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