scan_8int(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

✨ 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 🫢

(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 πŸ’…πŸŒΈβœ¨