scan_8short(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_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 ✨


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 πŸ’–βœ¨πŸ¦‹