Last updated March 2020
sl_remove — Remove a node by key
int **sl_remove** ( | sl, | |
| | key, | |
| | myfree
); | |
Skiplist * <var class="pdparam">sl</var>;
const void * <var class="pdparam">key</var>;
FreeFunc <var class="pdparam">myfree</var>;
Remove node (and all it's clones) by key and free datum with the
This is the optional, user-defined function that frees a data element in the skiplist. It is defined as:
typedef void (*FreeFunc) (void *);
On success this function returns the height of the resulting skiplist and
0 on error.
It is legal to call this function in any thread but skiplist functions are not thread safe.
Was this page helpful?