Get length of data
#include <cdb.h>
unsigned int cdb_datalen(struct cdb *c);
cdb_datalen returns the length of the data associated with the last key you looked up with cdb_find or cdb_findnext.
Use cdb_datapos to get the position of the data.
cdb_datapos(3), cdb_keylen(3), cdb_keypos(3)