fgets -> CList

I want to read the rows for a clist widget from a file:
        char buffer[100];
        fgets (buffer, sizeof (buffer), fz);
        gtk_clist_append (GTK_CLIST (clist), buffer);

but this obviously doesn't work:

        create_clist.c:83: warning: passing arg 2 of `gtk_clist_append' from
        incompatible pointer type

How can I prepare the data from fgets for gtk_clist_append?
* Debian = GNU/Linux XP *

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