1cdb_successor(3) Library Functions Manual cdb_successor(3)
2
3
4
6 cdb_successor - find next record
7
9 #include <cdb.h>
10
11 int cdb_successor(struct cdb *c,char *key,unsigned long int klen);
12
13
15 cdb_successor finds the record that follows key. If key is NULL,
16 cdb_successor finds the first record.
17
18 NOTE! The database must not contain keys with more than one associated
19 record or this API will lead to infinite loops! Use cdb_firstkey and
20 cdb_nextkey instead.
21
22 You can use cdb_datapos or cdb_keypos to get position and cdb_datalen
23 and cdb_keylen to get len.
24
25
27 cdb_firstkey(3), cdb_nextkey(3)
28
29
30
31 cdb_successor(3)