Doubly-Linked Lists
Doubly-Linked Lists: "GList
typedef struct {
gpointer data;
GList *next;
GList *prev;
} GList;
The GList struct is used for each element in a doubly-linked list.
gpointer data; holds the element's data, which can be a pointer to any kind of data, or any integer value using the Type Conversion Macros.
GList *next; contains the link to the next element in the list.
GList *prev; contains the link to the previous element in the list."
typedef struct {
gpointer data;
GList *next;
GList *prev;
} GList;
The GList struct is used for each element in a doubly-linked list.
gpointer data; holds the element's data, which can be a pointer to any kind of data, or any integer value using the Type Conversion Macros.
GList *next; contains the link to the next element in the list.
GList *prev; contains the link to the previous element in the list."
留言
張貼留言
歡迎留言一起討論