Re: Simple procedure question
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Uni <unimatrix 001 ntlworld com>
- Cc: GTK App Development list <gtk-app-devel-list gnome org>
- Subject: Re: Simple procedure question
- Date: Fri, 14 Feb 2003 11:56:33 -0500
GList *list = NULL;
void button1_clicked (GtkButton *button, gpointer user_data)
{
sortlist(user_data);
}
void sortlist(data_to_append)
{
list = g_list_append(list, data_to_append);
}
Cheers,
-Tristan
PS:
answer = (question about linked lists) ? helpfull : useless;
Uni wrote:
Hi,
I've got a usual callback function:
void button1_clicked (GtkButton *button, gpointer user_data)
{
sortlist();
}
Although I've also got another function, which is home made and I want
something like the following in it:
void sortlist()
{
g_list_append(WHAT GOES HERE,"hello");
}
I'm not quite sure what I put there. The first function is on one .c
file and the second is on a different .c file. Can anybody help me
please?
Thanks very much for your time,
Uni
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]