Re: Combo question

2006-04-27 Thread Wallace Owen
You need to allocate storage to hold the strings pointed at by the 2nd parm to g_list_append(). The glist isn't responsible for allocating fresh string space to hold the various strings pointed at by that 2nd parm, so if you keep using the same pointer in calls to g_list_append(), and at the end a

Combo question

2006-04-27 Thread [EMAIL PROTECTED]
Hi, I'm pretty frustrated because I can't solve this by myself. Can you help me? I have a file that looks like 1 Adam 1 Bert 1 Daniel 2 Marc 2 Sam .. .. 9 Zack and so on. That's an int number, a blank and a name. My code looks like this snip ... GList *glist = NULL; FILE *fp; if ( ! ( fp = fop