You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
732 B
Groff

19 years ago
.TH cdb_read 3
.SH NAME
cdb_read \- read bytes from a constant database
.SH SYNTAX
.B #include <libowfat/cdb.h>
19 years ago
.br
.B #include <libowfat/uint32.h>
19 years ago
int cdb_read(struct cdb *\fIc\fR,char *\fIbuf\fR,unsigned long int \fIlen\fR,uint32 \fIposition\fR);
19 years ago
.SH DESCRIPTION
\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.
.SH "RETURN VALUE"
\fBcdb_read\fR returns 0 if everything went well, or -1 on error
(setting \fIerrno\fR appropriately.
19 years ago
.SH "SEE ALSO"
cdb_find(3), cdb_init(3), cdb_free(3), cdbmake(1)