removeLink

fun removeLink(list: List, llink: List): List

Removes an element from a #GList, without freeing the element. The removed element's prev and next links are set to null, so that it becomes a self-contained list with one element.

This function is for example used to move an element in the list (see the example for g_list_concat()) or to remove an element in the list before freeing its data: | list = g_list_remove_link (list, llink); free_some_data_that_may_access_the_list_again (llink->data); g_list_free (llink); |

Return

the (possibly changed) start of the #GList

Parameters

list

a #GList, this must point to the top of the list

llink

an element in the #GList