Function
GLibclear_slist
since: 2.64
Declaration [src]
void
g_clear_slist (
GSList** slist_ptr,
GDestroyNotify destroy
)
Description [src]
Clears a pointer to a GSList, freeing it and, optionally, freeing its elements using destroy.
slist_ptr must be a valid pointer. If slist_ptr points to a null GSList, this does nothing.
Available since: 2.64
This function is not directly available to language bindings.
Parameters
slist_ptr-
Type: A list of
gpointerA
GSListreturn location.The data is owned by the caller of the function. destroy-
Type:
GDestroyNotifyThe function to pass to
g_slist_free_full()orNULLto not free elements.The argument can be NULL.