scan_longlong(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_longlong(3) πŸ’–

okay bestie, welcome to scan_longlong(3) β€” it's page 3 of the Library Functions Manual, and it's a tiny little icon that does exactly one thing and does it slay. ✨


🌸 NAME 🌸

scan_longlong β€” parse a long integer in decimal ASCII representation


πŸŽ€ SYNTAX πŸŽ€

#include <libowfat/scan.h>

size_t scan_longlong(const char *src,long long *dest);

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, scan_longlong parses a long long integer in decimal ASCII representation out of src and writes the result into dest. 🫢

and what does it give you back? the number of bytes read from src. that's it. that's the whole vibe. it tells you how far into src it got, and it drops the actual number into dest. main character energy, minimal drama, zero complaints. πŸ’…


⭐ SEE ALSO ⭐


ngl it's giving "short and perfect" β€” no options, no env vars, no exit statuses, no warnings, nothing to worry about. just a const char *src, a long long *dest, and a size_t return. fr fr. πŸ˜­πŸ’œ

okay that's the whole page, bestie!! πŸ§šπŸ’– the header up top said scan_longlong(3) and the footer at the bottom just echoed scan_longlong(3) right back β€” same name, same manual, Library Functions Manual β€” with no version and no date anywhere in sight, which is lowkey iconic of it honestly. πŸŒˆπŸŽ€πŸ“ go forth and parse those long longs. πŸ‘‘