scan_long(3)
π scan_long β bestie edition π
okay so welcome to scan_long(3) from the Library Functions Manual β¨ she's a lil function, she's lowkey iconic, and she does exactly one job and does it slayfully π
πΈ NAME πΈ
scan_long β parse an long integer in decimal ASCII representation π¦
(and yes bestie, the original really does say "an long", we're keeping it fr fr, no cap, we do not edit the ancestors π)
β¨ SYNTAX β¨
#include <libowfat/scan.h>
size_t scan_long(const char *src,long *dest);
look at her π₯Ή so clean. so simple. main character energy for real.
π DESCRIPTION π
okay so here's the tea π β scan_long parses a long integer in decimal ASCII representation from src and writes the result into dest. that's the whole vibe. that's the whole function.
and then she returns the number of bytes read from src π like a little receipt. "here's what I ate, here's how much of it I ate." periodt.
so basically: give her a string, give her a spot to drop the number, and she'll tell you how many bytes of the string she actually consumed π she's not greedy, she's precise. we love a boundaries queen.
ngl, watch out β she writes into dest so make sure that pointer is real and pointing at somewhere you're allowed to write. she's not checking, bestie, that's your job π
π SEE ALSO π
she's got a whole friend group, go say hi π«
and that's the page!! π«Ά this was scan_long(3) from the Library Functions Manual, and the footer just says scan_long(3) again because the whole page is obsessed with herself honestly π
no version, no date, just vibes β she said "the name is the date" and honestly? valid. mwah πβ¨ππ¦
π¦ 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