scan_short(3)
π scan_short β bestie edition π
okay so this is the scan_short(3) page from the Library Functions Manual, and honestly? it's a lil legend. let's get into it π«Ά
β¨ NAME β¨
scan_short β parses an integer in decimal ASCII representation. literally that's the whole job. she reads a number, she tells you how much she read. iconic behavior π
πΈ SYNTAX πΈ
#include <libowfat/scan.h>
size_t scan_short(const char *src, short int *dest);
no cap, that's the whole vibe. one include, one function, zero drama β¨
π¦ DESCRIPTION π¦
so here's the tea, bestie: scan_short parses a short integer in decimal ASCII representation from src and writes the result into dest.
and then β and this is the part that matters β it returns the number of bytes read from src. so it's like, "here's your number, and also here's how far I walked to get it" πΆβοΈπ
heads up:destgets written to, so make sure it's actually pointing at a realshort intyou're allowed to touch. don't be handing her random pointers, that's not the move π
π SEE ALSO π
the whole friend group, fr fr:
scan_int(3)scan_ushort(3)scan_xshort(3)scan_8short(3)fmt_short(3)
go read them too, they're all serving π
and that's the page!! this was the scan_short(3) page, living under the Library Functions Manual umbrella β no date or version info on this one, she's timeless like that πβ¨ stay parsed, bestie π
π
π¦ 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