array_bytes(3)
π array_bytes(3) π
okay so bestie, welcome to the Library Functions Manual β¨ this one is called array_bytes, and it lives in section 3 (that's the library functions girlies, iykyk) π«Ά
πΈ NAME πΈ
array_bytes β get number of allocated members in array π
β¨ SYNTAX β¨
first you gotta include the header, no skipping bestie:
#include <libowfat/array.h>
int64 array_bytes(array* x);
and here's how it actually looks in the wild, like in your actual code:
array x;
int64 bytes = array_bytes(&x);
π¦ DESCRIPTION π¦
so array_bytes returns the number of initialized bytes in x, and it does that without regard to t π
like, t is not invited to this conversation, periodt.
and here's the lil plot twist: if x is unallocated, then array_length and array_bytes return 0 π«Ά both of them. zero. the void. iconic behaviour honestly.
π SEE ALSO π
go read these too, they're all in the family:
okay that's the whole page bestie, no cap π and just so you know, this was the array_bytes(3) page from the Library Functions Manual β section 3, that exact name at the bottom, mwah π slay, go forth and count your bytes πβ¨π
π¦ 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