sli_remove — Remove a node by key
int **sli_remove** ( | sl, | |
| | m, | |
| | myfree
); | |
This function is similar to sl_remove, but you pass in the node that you wish to remove. Any clones will also be removed.
The node that you wish to remove.
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 or
0 on error.
It is legal to call this function in any thread but skiplist functions are not thread safe.