match_octal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so welcome to match_octal(9) from the Kernel API Manual, bestie πŸ’–. match_octal scans an octal representation of an integer from a substring_t. That’s the whole vibe ✨.

✨ SYNOPSIS ✨

int match_octal (substring_t *s , int *result );

πŸŽ€ ARGUMENTS πŸŽ€

  • s β€” the substring_t to be scanned πŸ‘€
  • result β€” the resulting integer on success πŸŽ‰

πŸ¦‹ DESCRIPTION πŸ¦‹

Attempts to parse the substring_t s as an octal integer. That’s it, that’s the mission πŸ’….

🌈 RETURN 🌈

On success, it sets result to the integer represented by the string and returns 0 🫢. On failure, it returns -EINVAL or -ERANGE 😭. No cap, those are the failure returns listed here.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./lib/parser.c has the whole friend group πŸ’œ:


sign-off era: this icon was served by ./lib, October 2026 edition β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from