cdb_successor(3)
β¨ cdb_successor(3) β¨
okay so bestie, welcome to the cdb_successor(3) page from the Library Functions Manual β yes, we're in manual-page land and it's giving "find the next record" energy. π¦
π NAME π
cdb_successor β find next record π
πΈ SYNTAX πΈ
#include <libowfat/cdb.h>
int cdb_successor(struct cdb *c, char *key, size_t klen);
π DESCRIPTION π
So cdb_successor finds the record that follows key. Literally the next one. If key is NULL, then cdb_successor finds the first record. No cap. β¨
π¨ NOTE! The database must not contain keys with more than one associated record, or this API will lead to infinite loops! Usecdb_firstkeyandcdb_nextkeyinstead. This is not a drill, bestie β infinite loops are the opposite of slay. π
You can use cdb_datapos or cdb_keypos to get position and cdb_datalen and cdb_keylen to get len. π«Ά
π₯ SEE ALSO π₯
okay that's the whole vibe β cdb_successor(3) from the Library Functions Manual. The footer is just cdb_successor(3), and there's no source/version/date listed, so this is your cute sign-off: stay loop-free, use cdb_firstkey and cdb_nextkey when you need them, and go find those records. periodt. π
π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms