scan_8int(3)
β¨ NAME β¨
scan_8int β bestie, it parses an unsigned integer in octal ASCII representation π
(yes, base 8, the spicy one)
This one lives in the Library Functions Manual, and honestly? She's a tiny icon π
πΈ SYNTAX πΈ
#include <libowfat/scan.h>
size_t scan_8int(const char *src,int *dest);
Like, that's it. That's the whole vibe. Two args, no drama π
π DESCRIPTION π
okay so here's the tea β
scan_8int parses an unsigned integer in octal ASCII representation from src and writes the result into dest. It returns the number of bytes read from src.
That's the whole thing, bestie. It reads, it converts, it tells you how many bytes it ate. iconic behaviour honestly π
srcβ the string it's reading from, it's giving source material πdestβ where the parsed number lands, the final destination of the data's main character arc β¨
And the return value? The number of bytes read from src. Lowkey the most important part, ngl β that's how you know where you are in the string π¦
fr fr, if you're chaining scans together, that return value is your bestie. Don't sleep on it π
π«Ά SEE ALSO π«Ά
scan_8long(3)scan_xint(3)scan_int(3)fmt_8int(3)
(the whole scan/fmt family, they all ate π₯ go say hi to them)
k bye, this was scan_8int(3) from the Library Functions Manual β stay octal, stay slay π
πΈβ¨
π¦ 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