Function

GLibListlast

Declaration

GList*
g_list_last (
  GList* list
)

Description

Gets the last element in a GList.

Parameters

list

Type: A list of gpointer

Any GList element.

The data is owned by the caller of the function.

Return value

Type: A list of gpointer

The last element in the GList, or NULL if the GList has no elements.

The data is owned by the called function.