uint64_read(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

πŸ’– uint64_read(3) πŸ’–

okay so this is a page from the Library Functions Manual β€” yes bestie, we're in the man pages now, and this one is a whole lil cutie πŸŽ€


✨ NAME ✨

uint64_read β€” read an unsigned little-endian 64-bit integer πŸ¦‹


✨ SYNTAX ✨

lowkey the whole vibe starts here, no cap:

#include <libowfat/uint64.h>

uint64 uint64_read(const char s[4]);

✨ DESCRIPTION ✨

okay so first things first: uint64 is a 64-bit unsigned integer type. that's it, that's the type. iconic behavior honestly πŸ’…

and then uint64_read does the thing where it portably reads a uint64 β€” as stored on a little-endian architecture β€” from s, and hands it back to you. returns it. gives it to you. bestie behavior 🫢

like, it's not out here assuming anything about your machine's endianness, it just knows how a little-endian uint64 looks and reads it correctly anyway. main character energy fr fr ✨

ngl the fact that it reads a 64-bit integer out of a const char s[4] is exactly how the page writes it, so that's how we're writing it too. character for character, no editing, periodt. πŸ’€

✨ SEE ALSO ✨

go read those too, iykyk πŸ‘‘


that's the whole page bestie, you ate it up πŸ’– and if you're wondering about the fine print: this one lives under the uint64_read(3) name in the Library Functions Manual β€” that's the source and the whole header situation right there. no extra lore, just that. mwah πŸŽ€βœ¨πŸ¦‹