scan_xlong(3)
π scan_xlong β the manual, but make it cute π
okay bestie, welcome to the Library Functions Manual π this is the scan_xlong(3) page and honestly? it's a little icon. let's get into it.
β¨ NAME β¨
scan_xlong β parses an unsigned long integer in hexadecimal ASCII representation π¦
like. it reads hex. it gives you a number. she's simple, she's effective, she ate π
πΈ SYNTAX πΈ
#include <libowfat/scan.h>
size_t scan_xlong(const char *src,unsigned long *dest);
copy it exactly, bestie, don't freestyle the includes π
π DESCRIPTION π
okay so here's the tea, fr fr:
scan_xlong parses an unsigned long integer in hexadecimal ASCII representation from src and writes the result into dest. then β and this is the part people always forget β it returns the number of bytes read from src. so like, it's not just vibes, it tells you exactly how far it got. π«Ά
scan_xlong understands both upper and lower case letters β¨ like a through f AND A through F, she's bilingual, she's inclusive, we love that for her π
and this next one is important, so listen up:scan_xlongdoes not expect or understand a"0x"prefix. do not hand her a"0x". she will not know what to do with it. no cap π
π SEE ALSO π
fmt_xlong(3)β the reverse bestie, the one who formats it back out the other way π¦
so yeah, that's the whole page. short, sweet, main character energy, no notes. this was the Library Functions Manual version of scan_xlong(3), and that's the last line, periodt π
β¨π
π¦ 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