table of contents
cdb_read(3) | Library Functions Manual | cdb_read(3) |
NAME¶
cdb_read - read bytes from a constant databaseSYNTAX¶
#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.