scan_xlong(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_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_xlong does 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 πŸ’…βœ¨πŸ’–