Function

GLibSListposition

Declaration [src]

gint
g_slist_position (
  GSList* list,
  GSList* llink
)

Description [src]

Gets the position of the given element in the GSList (starting from 0).

This function is not directly available to language bindings.

Parameters

list

Type: A list of gpointer

A GSList.

The data is owned by the caller of the function.
llink

Type: A list of gpointer

An element in the GSList.

The data is owned by the caller of the function.

Return value

Type: gint

The position of the element in the GSList, or -1 if the element is not found.