skipInsert man page

skipInsert — insert an item.


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


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


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.

See Also

skipDelete(3), skipFreeList(3), skipRelease(3), skipInsert(3), skipSearch(3), skipNext(3), skipNewList

Referenced By

skipDelete(3), skipFreeList(3), skipNewList(3), skipNext(3), skipRelease(3), skipSearch(3).

Explore man page connections for skipInsert(3).

ClearSilver util/skiplist.h 12 July 2007