cdb_datalen(3)
π cdb_datalen β get length of data π
okay bestie, welcome to cdb_datalen(3), living cozy in the Library Functions Manual β¨ this one's a lil baby function but it's so useful, i promise π«Ά
πΈ NAME πΈ
cdb_datalen β get length of data
like. that's it. that's the job. and it ate π
β¨ SYNTAX β¨
first things first, you gotta invite the header in:
#include <libowfat/cdb.h>
unsigned int cdb_datalen(struct cdb *c);
yes queen, one lil struct cdb * and you're in π
π¦ DESCRIPTION π¦
so here's the vibe: cdb_datalen returns the length of the data associated with the last key you looked up β and by "looked up" i mean you used cdb_find or cdb_findnext π
that's the whole thing. it's giving "how big is this data tho" and it tells you, no cap π₯
heads up bestie: this only knows about the last key you looked up. it's not out here remembering your whole search history, it's very much living in the moment π
and if you also wanna know where that data actually lives? that's a whole different function, and it's literally right here: use cdb_datapos to get the position of the data π
so the dream team is:
cdb_datalenβ how long is itcdb_dataposβ where is it
iconic duo, fr fr π
π SEE ALSO π
go read these next, they're all in the same friend group:
and that's the page!! this lil cutie comes to you straight out of the Library Functions Manual, part of libowfat's little cdb family π§ mwah, go read cdb_datapos(3) next bestie, ily, bye πβ¨π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· 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 noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- 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