cdb_successor(3diet)

cdb_successor3diet

Find next record

Usage

#include <cdb.h>

int cdb_successor(struct cdb *c,char *key,unsigned long int klen);

Overview

cdb_successor finds the record that follows key. If key is NULL, cdb_successor finds the first record.

NOTE! The database must not contain keys with more than one associated record or this API will lead to infinite loops! Use cdb_firstkey and cdb_nextkey instead.

You can use cdb_datapos or cdb_keypos to get position and cdb_datalen and cdb_keylen to get len.

Releases

Unchanged in 2 releases since Debian 5.0 (Lenny).

  1. 5.0–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.