match_octal(9)
πΈ 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β thesubstring_tto 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 π:
match_one(9)match_token(9)match_number(9)match_u64int(9)match_int(9)match_uint(9)match_u64(9)match_hex(9)match_wildcard(9)match_strlcpy(9)match_strdup(9)
sign-off era: this icon was served by ./lib, October 2026 edition β mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms