debian man page for cdb_read

Query: cdb_read

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

cdb_read(3)						     Library Functions Manual						       cdb_read(3)

NAME
cdb_read - read bytes from a constant database
SYNTAX
#include <cdb.h> #include <uint32.h> int cdb_read(struct cdb *c,char *buf,unsigned long int len,uint32 position);
DESCRIPTION
cdb_read reads len bytes starting at position from c to buf. You can use cdb_datapos or cdb_keypos to get position and cdb_datalen and cdb_keylen to get len. buf needs to point to a memory region large enough to hold len bytes.
RETURN VALUE
cdb_read returns 0 if everything went well, or -1 on error (setting errno appropriately.
SEE ALSO
cdb_find(3), cdb_init(3), cdb_free(3), cdbmake(1) cdb_read(3)
Related Man Pages
cdb(3) - debian
io_trywrite(3) - debian
stralloc(3) - debian
confstr(3) - netbsd
socket_sendto(3) - php
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
One instance of comparing grep and awk
Find columns in a file based on header and print to new file
Weird 'find' results
New UNIX and Linux History Sections