API Version: 2.0
Library Version: 2.72
gint g_list_position ( GList* list, GList* llink )
Gets the position of the given element in the GList (starting from 0).
GList
list
Type: A list of gpointer
gpointer
A GList, this must point to the top of the list.
llink
An element in the GList.
Type: gint
gint
The position of the element in the GList, or -1 if the element is not found.