1cdb_read(3)                Library Functions Manual                cdb_read(3)
2
3
4

NAME

6       cdb_read - read bytes from a constant database
7

SYNTAX

9       #include <cdb.h>
10       #include <uint32.h>
11
12       int cdb_read(struct cdb *c,char *buf,unsigned long int len,uint32 posi‐
13       tion);
14
15

DESCRIPTION

17       cdb_read reads len bytes starting at position from c to buf.   You  can
18       use  cdb_datapos  or  cdb_keypos  to  get  position and cdb_datalen and
19       cdb_keylen to get len.
20
21       buf needs to point to a memory region large enough to hold len bytes.
22
23

RETURN VALUE

25       cdb_read returns 0 if everything went well, or  -1  on  error  (setting
26       errno appropriately.
27
28

SEE ALSO

30       cdb_find(3), cdb_init(3), cdb_free(3), cdbmake(1)
31
32
33
34                                                                   cdb_read(3)
Impressum