cdb_read(3)

cdb_read3

Read bytes from a constant database

Usage

#include <libowfat/cdb.h>
#include <libowfat/uint32.h>

int cdb_read(struct cdb *c,char *buf,unsigned long int len,uint32 position);

Overview

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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.