match_u64int(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to match_u64int(9) from the Kernel API Manual β€” this one is literally all about scanning a number in the given base from a substring_t, and it's giving β€œtiny parser helper” energy. πŸŽ€

✨ NAME ✨

match_u64int β€” scans a number in the given base from a substring_t. no cap, that's the whole assignment. πŸ’…

πŸ› οΈ SYNOPSIS πŸ› οΈ

int match_u64int (substring_t *s , u64 *result , int base );

πŸŽ€ ARGUMENTS πŸŽ€

  • s β€” the substring_t that's gonna get scanned, bestie. πŸ”
  • result β€” where the resulting u64 lands on success. 🫢
  • base β€” the base to use when converting the string. iconic little number-base moment. πŸ”₯

🌸 DESCRIPTION 🌸

Give it a substring_t and a base, and it attempts to parse that substring as a number in that base. that's it, that's the vibe. ✨

⭐ RETURN ⭐

On success, it sets result to the integer represented by the string and returns 0. if things go sideways, it returns -EINVAL or -ERANGE. periodt. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./lib/parser.c, plus these iconic friends in the match_* friend group:


that's the whole page, bestie! source/version: ./lib, date: October 2026 🫢✨ mwah πŸ’‹

πŸ“¦ where this page comes from