Inserts a new element into the list at the given position.

class ListSG
void* data


data void*

the data for the new element

position int

the 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.

Return Value

Type: ListSG

the new start of the GSList