int cdb_successor(struct cdb *c,char *key,unsigned long int klen);
NOTE! 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 position and cdb_datalen and cdb_keylen to get len.