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

✨ scan_xlonglong(3) ✨

okay bestie, gather round, because we're about to read some hex πŸ’… and honestly? it's giving iconic.

this one lives in the Library Functions Manual, and its whole entire job is turning a lil string of hexadecimal text into an actual unsigned long long. no cap.


🌸 NAME 🌸

scan_xlonglong β€” parse an unsigned long long integer in hexadecimal ASCII representation πŸ¦‹

like… it reads hex. that's it. that's the vibe. periodt.


πŸŽ€ SYNTAX πŸŽ€

#include <libowfat/scan.h>

size_t scan_xlonglong(const char *src,unsigned long long* dest);

look at her. so simple. so elegant. main character energy fr fr πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜•

scan_xlonglong parses an unsigned long long integer in hexadecimal ASCII representation from src and writes the result into dest. then it tells you how many bytes it read from src β€” that count is what it returns. literally so helpful of her 🫢

she understands both upper and lower case letters, so DEADBEEF and deadbeef are both absolutely valid and both absolutely slay 🌈

⚠️ but bestie, listen β€” scan_xlonglong does not expect or understand a "0x" prefix. do NOT hand her a 0x. she will not know what to do with it. that's not her era. πŸ’€

so like… hand her the digits. just the digits. she's got the rest. 😌


πŸ¦‹ SEE ALSO πŸ¦‹

  • fmt_xlonglong(3) β€” the reverse bestie, the one who writes the hex instead of reading it πŸŽ€

and that's the whole page, gorgeous πŸ’œ

scan_xlonglong(3) β€” straight out of the Library Functions Manual, and yeah the footer is just her name again, she's humble like that, no version drama, no date drama, just vibes βœ¨πŸŒΈπŸ¦‹πŸ’