Skip to main content

Name

sl_next — Move iter forward a node and return the new node's data

Synopsis

#include "skiplist.h"

| void * **sl_next** ( | sl, |   | |   | iter); |   |

Skiplist * <var class="pdparam">sl</var>; skiplistnode ** <var class="pdparam">iter</var>;

Description

Move iter forward a node and return the new node's data.

Parameters

sl

The Skiplist.

iter

The list iterator.

Return Value

This function returns void.

Warning

When a value is returned, the memory is owned by the Skiplist. Your memory can become invalid if something else removes this value from the Skiplist.

Threading

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

See Also

Was this page helpful?