Re: How to use GList Double Link List

2007-12-25 Thread Matí­as Alejandro Torres
sumit kumar escribió: > *gint pos; > g_print("Enter Number1\n"); > scanf("%d",&pos); > list = g_list_append(list, (gpointer)&pos); > > g_print("Enter Number2\n"); > scanf("%d",&pos); > list = g_list_append(list, (gpointer)&pos); > > g_print("Enter Number3\n"); > scanf("%d",&pos); > list = g_list_ap

Re: How to use GList Double Link List

2007-12-25 Thread Jim George
On Dec 25, 2007 9:50 PM, sumit kumar <[EMAIL PROTECTED]> wrote: > Hi All, > I am trying to use GLib double link list in my application.But I have a > problem. I run the GList sample program from Gtk+-2.0 FAQ:- > *snip* > > *gint pos; > g_print("Enter Number1\n"); > scanf("%d",&pos); > list = g_list

How to use GList Double Link List

2007-12-25 Thread sumit kumar
Hi All, I am trying to use GLib double link list in my application.But I have a problem. I run the GList sample program from Gtk+-2.0 FAQ:- *GList *list = NULL; GList *listrunner; gint array[] = { 1, 2, 3, 4, 5, 6 }; gint pos; gint *value; /* add data to the list */ for (pos=0;pos < 6; pos++) { p