scan_uint(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_uint β€” the manual, but make it cute πŸ’–

okay so bestie, welcome to the scan_uint page, straight outta the Library Functions Manual ✨ this is a little one but she's iconic and she does exactly one thing and she does it well 🫢


🌸 NAME 🌸

scan_uint β€” parse an unsigned integer in decimal ASCII representation πŸ’…


πŸŽ€ SYNTAX πŸŽ€

#include <libowfat/scan.h>

size_t scan_uint(const char *src,int *dest);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• scan_uint parses an unsigned integer in decimal ASCII representation from src, and writes the result into dest. that's the whole vibe, no cap πŸ’œ

and what does she give back? she returns the number of bytes read from src πŸ‘‘ that's your return value, that's the size_t, that's the receipt 🧾

literally it's giving "read some digits, drop the number off at dest, tell you how much of the string she consumed" 🌈 and honestly? we're obsessed 😭


✨ SEE ALSO ✨

  • scan_ulong(3) β€” her sister, she goes bigger πŸ’«
  • fmt_uint(3) β€” the other direction, the glow-up in reverse πŸ”₯

okay and that's the whole page!! πŸŽ€ shoutout to the Library Functions Manual for hosting her, and the footer is just her name again β€” scan_uint(3) β€” like the queen she is πŸ‘‘πŸ’– byeee, go read some decimal digits bestie πŸ¦‹πŸŒΈ