Re: fgets -> CList

char *buffer[1];
buffer[0]=(char *)malloc(sizeof(char)*1024);
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

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