skipinsert(3) - Linux man page

Name

skipInsert - insert an item.

Synopsis

#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)

Description

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.

See Also

skipdelete(3), skipfreelist(3), skiprelease(3), skipInsert(3), skipsearch(3), skipnext(3), skipNewList

Referenced By

skipnewlist(3)