Glib实例学习(1)单链表
来源:一方有 责任编辑:栏目编辑 发表时间:2013-07-01 23:21 点击:次
1:SList结构
2: SList 原型
- typedef struct _GSList GSList;
- struct _GSList
- {
- gpointer data;
- GSList *next;
- };
- GSList* g_slist_append (GSList *list,
- gpointer data) G_GNUC_WARN_UNUSED_RESULT;
- GSList* g_slist_prepend (GSList *list,
- gpointer data) G_GNUC_WARN_UNUSED_RESULT;
- GSList* g_slist_insert (GSList *list,
- gpointer data,
- gint position) G_GNUC_WARN_UNUSED_RESULT;
- GSList* g_slist_insert_sorted (GSList *list,
- gpointer data,
- GCompareFunc func) G_GNUC_WARN_UNUSED_RESULT;
- GSList* g_slist_insert_sorted_with_data (GSList *list,
-  
相关新闻>>
- 发表评论
-
- 最新评论 更多>>