Function
GLibListinsert
Declaration [src]
GList*
g_list_insert (
GList* list,
gpointer data,
gint position
)
Description [src]
Inserts a new element into the list at the given position.
This function is not directly available to language bindings.
Parameters
list-
Type: A list of
gpointerA pointer to a
GList, this must point to the top of the list.The data is owned by the caller of the function. data-
Type:
gpointerThe data for the new element.
The argument can be NULL.The data is owned by the caller of the function. position-
Type:
gintThe position to insert the element. If this is negative, or is larger than the number of elements in the list, the new element is added on to the end of the list.