skip_spaces(9)
π NAME π
Okay so this is skip_spaces(9) from the Kernel API Manual, and its whole thing is literally in the name: skip_spaces removes leading whitespace from @str. Thatβs the gig. β¨
πΈ SYNOPSIS πΈ
char * skip_spaces (const char *str );
Bestie, thatβs the exact signature β copy it character for character, sheβs sensitive. π
π ARGUMENTS π
strβ the string to be stripped. This is the string getting its leading whitespace removed, no cap. π«Ά
β¨ DESCRIPTION β¨
So you pass in str, and skip_spaces returns a pointer to the first non-whitespace character in str. Thatβs the whole flex. π
π¦ SEE ALSO π¦
- Kernel file
./tools/lib/string.c memdup(9)strtobool(9)strlcpy(9)strim(9)strreplace(9)memchr_inv(9)
Go say hi to the whole squad. π
xoxo, source/version ./tools/lib, dated October 2026 ππ
π¦ 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