Skip to main content

Name

sl_insert — Insert data and return the resulting node

Synopsis

#include "skiplist.h"

| void * **sl_insert** ( | sl, |   | |   | data); |   |

Skiplist * <var class="pdparam">sl</var>; void * <var class="pdparam">data</var>;

Description

Insert data and return the resulting node.

Parameters

sl

The Skiplist

data

The data.

Return Value

On success this function returns the inserted node; on failure, it returns 0.

Threading

It is legal to call this function in any thread but skiplist functions are not thread safe.

See Also

Was this page helpful?