scan_xlonglong(3)
β¨ 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 a0x. 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 β¨πΈπ¦π
π¦ 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