Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 588 Bytes
.TH cdb_read 3
cdb_read \- read bytes from a constant database
.B #include <cdb.h>
.B #include <uint32.h>
int cdb_read(struct cdb *\fIc\fR,char *\fIbuf\fR,unsigned int \fIlen\fR,uint32 \fIposition\fR);
\fBcdb_read\fR reads \fIlen\fR bytes starting at \fIposition\fR from
\fIc\fR to buf. You can use cdb_datapos or cdb_keypos to get
\fIposition\fR and cdb_datalen and cdb_keylen to get \fIlen\fR.
\fIbuf\fR needs to point to a memory region large enough to hold
\fIlen\fR bytes.
cdb_find(3), cdb_init(3), cdb_free(3), cdbmake(1)
Jump to Line
Something went wrong with that request. Please try again.