copy

fun copy(list: SList): SList

Copies a #GSList.

Note that this is a "shallow" copy. If the list elements consist of pointers to data, the pointers are copied but the actual data isn't. See g_slist_copy_deep() if you need to copy the data as well.

Return

a copy of @list

Parameters

list

a #GSList