logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

skipInsert - insert an item.

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.

Name

       skipInsert  - insert an item.

Return Value

       None.

See Also

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

ClearSilver                                       12 July 2007                                     skipInsert(3)

Synopsis

       #include <util/skiplist.h>

       NEOERR *skipInsert(skipList list, UINT32 key, void *value, int allowUpdate);

See Also