Re: fgets -> CList



char *buffer[1];
buffer[0]=(char *)malloc(sizeof(char)*1024);
fgets(buffer[0],1024,fz);
gtk_clist_append(GTK_CLIST(clist), buffer);


On 27 Apr 2001 06:27:20 -0500, Thomas Bliesener wrote:
On Fri, Apr, 27, 2001 at 10:17:37 +0200, CALMELS Clement wrote:

In your code just try:
gtk_clist_append (GTK_CLIST (clist), &buffer);

I already tried it: same warning, same segfault.


It will work if your clist has only one column.

It has. The clist works, I tested it with
gchar *buffer = {"first row"};
The fgets works too, I can printf() it.
-- 
* Debian = GNU/Linux XP *

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





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