skipInsert(3)

skipInsert3

Insert an item.

Usage

#include <util/skiplist.h>
NEOERR *skipInsert(skipList list, UINT32 key, void *value, int allowUpdate);

Arguments

list - list to add pair to.
key - key identifying <value>.
value - value to store (may NOT be NULL)

Overview

Inserts the <key>/<value> pair into the <list>. Key values 0 and -1 are reserved (and illegal). If key is already in list, and <allowUpdate> is true, value is updated, otherwise SKIPERR_EXISTS is returned.

MT-Level: Safe if <list> thread-safe.

Return value

None.

Releases

10 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0–13

From clearsilver-dev 0.10.5-6+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.