Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
647 B

17 years ago
.TH cdb_successor 3
cdb_successor \- find next record
.B #include <libowfat/cdb.h>
17 years ago
int cdb_successor(struct cdb *\fIc\fR, char *\fIkey\fR, size_t \fIklen\fR);
17 years ago
\fBcdb_successor\fR finds the record that follows \fIkey\fR. If
\fIkey\fR is NULL, cdb_successor finds the first record.
\fBNOTE!\fR The database must not contain keys with more than one
associated record or this API will lead to infinite loops! Use
cdb_firstkey and cdb_nextkey instead.
You can use cdb_datapos or cdb_keypos to get \fIposition\fR and
cdb_datalen and cdb_keylen to get \fIlen\fR.
cdb_firstkey(3), cdb_nextkey(3)