return NULL;
}
+GList*
+g_list_find_custom (GList *list, gconstpointer data, GCompareFunc func)
+{
+ if (!func)
+ return NULL;
+
+ while (list) {
+ if (func (list->data, data) == 0)
+ return list;
+
+ list = list->next;
+ }
+
+ return NULL;
+}
+
GList*
g_list_reverse (GList *list)
{
{
GList *prev = NULL;
GList *current;
-
+ GList *node;
+
if (!func)
return list;
prev = current;
}
- GList *node = new_node (prev, data, current);
+ node = new_node (prev, data, current);
return list == current ? node : list;
}