uint32_pack(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, this is uint32_pack(3) β€” from the Library Functions Manual, iykyk. And what does it do? It writes an unsigned little-endian 32-bit integer. That's the whole name vibe. Slay. πŸ’…

✨ SYNTAX ✨

First you gotta include the header, periodt:

#include <libowfat/uint32.h>

Then you declare your uint32 u; like the main character you are:

uint32 u;

And the function itself? It's giving:

void uint32_pack(char s[4],uint32 u);

🌸 DESCRIPTION 🌸

So uint32 is a 32-bit unsigned integer type. Normally it's either unsigned int or unsigned long β€” no cap, it depends. πŸ’…

And uint32_pack? It portably writes a uint32 u to s in little-endian byte order. That's it, that's the tea. It's lowkey iconic for being so portable. πŸ¦‹

πŸ‘‘ SEE ALSO πŸ‘‘


And that's the whole page! This has been uint32_pack(3) from the Library Functions Manual, no date needed because it's timeless fr. Stay packed, bestie πŸ’–βœ¨