scan_8short(3)
π scan_8short β the glow-up page π
okay bestie, you found yourself in section 3 of the Library Functions Manual (that's <pink>Library Functions Manual</pink>, the home of all the good function lore), and the star of this page is scan_8short. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
scan_8short β parse an unsigned short integer in octal ASCII representation
likeβ¦ it reads a number, but it's giving octal, and it's giving unsigned short. iconic behavior honestly π
β¨ SYNTAX β¨
#include <libowfat/scan.h>
size_t scan_8short(const char *src,unsigned short *dest);
yes, that include is <libowfat/scan.h> β copy it exactly, don't get cute with it π
β¨ DESCRIPTION β¨
so scan_8short does the thing where it parses an unsigned short integer in octal ASCII representation out of src, and then it writes the result right into dest. no cap, that's the whole job πΈ
and what does it hand back to you? the number of bytes it read from src. that's the return value β a size_t. so you know exactly how far it got, periodt β¨
β¨ SEE ALSO β¨
scan_xshort(3)β the sibling, go say hi π
no warnings, no bug notes, no exit statuses on this one β it's a short page and it ate π
okay that's literally the whole entire page!! π this was scan_8short(3) from the Library Functions Manual, and ngl the footer is just the page name again with no source, version or date attached, so that's all the deets we got β slay, bye 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