1skipInsert(3) util/skiplist.h skipInsert(3)
2
3
4
6 skipInsert - insert an item.
7
9 #include <util/skiplist.h>
10
11
12 NEOERR *skipInsert(skipList list, UINT32 key, void *value, int allowUpdate);
13
14
15
16
18 list - list to add pair to.
19 key - key identifying <value>.
20 value - value to store (may NOT be NULL)
21
22
24 Inserts the <key>/<value> pair into the <list>. Key values 0 and -1
25 are reserved (and illegal). If key is already in list, and <allowUp‐
26 date> is true, value is updated, otherwise SKIPERR_EXISTS is returned.
27
28 MT-Level: Safe if <list> thread-safe.
29
30
32 None.
33
34
36 skipInsert(3), skipDelete(3), skipSearch(3), skipNext(3), skipFreeL‐
37 ist(3), skipNewList(3), skipRelease
38
39
40
41ClearSilver 14 November 2006 skipInsert(3)