Function

GLibListremove_all

Declaration

GList*
g_list_remove_all (
  GList* list,
  gconstpointer data
)

Description

Removes all list nodes with data equal to data. Returns the new head of the list. Contrast with g_list_remove() which removes only the first node matching the given data.

Parameters

list

Type: A list of gpointer

A GList, this must point to the top of the list.

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

Type: gconstpointer

Data to remove.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: A list of gpointer

The (possibly changed) start of the GList.

The data is owned by the called function.