Skip to main content

Name

rs_next — Move to the next node in the RSplayTree and return the data

Synopsis

#include "rsplay.h"

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

RSplayTree * <var class="pdparam">sl</var>; struct rsplaynode ** <var class="pdparam">iter</var>;

Description

Move to the next node in the RSplayTree and return the data.

Parameters

sl

The root of an “rsplaytree”.

iter

A pointer to the address of a node in the RSplayTree. As a side effect, this will be updated to contain the address of the next node in the tree.

Return Values

Returns the data in the next node of the RSplayTree or NULL if the next node is NULL.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?