uint32_unpack(3)
π uint32_unpack(3) β Library Functions Manual π
okay bestie, gather round, we're reading raw bytes today and it's gonna be β¨immaculateβ¨
πΈ NAME πΈ
uint32_unpack β read an unsigned little-endian 32-bit integer
π SYNTAX π
first, you gotta pull in the header, no cap:
#include <libowfat/uint32.h>
uint32 u;
void uint32_unpack(const char s[4],uint32 *u);
that's the whole vibe. u is your little container, and the function fills it up. π«Ά
π¦ DESCRIPTION π¦
so like, uint32 is a 32-bit unsigned integer type β it's normally either unsigned int or unsigned long, depending on what your machine woke up feeling like today. π
and uint32_unpack? she's the portable girlie. she reads a uint32 as stored on a little-endian architecture from s, and writes it into u in the native byte order. so whatever endianness your machine is on, you get a value you can actually use. it's giving considerate. it's giving thoughtful. we stan. π
β¨ SEE ALSO β¨
that's it bestie, that's the whole page, go forth and unpack responsibly ππ
signing off from the Library Functions Manual, where uint32_unpack(3) lives rent free β mwah, 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