sscanf(9)
π sscanf(9) β Kernel API Manual, bestie edition
Ok so we're talking about sscanf from the kernel API manual (sscanf(9), section 9, kernel API) β the one that takes a buffer and unformats it back into a list of arguments. It's literally the reverse of sprintf, and it ate. β¨
πΈ NAME πΈ
sscanf β Unformat a buffer into a list of arguments π
Like, you hand it a chunk of text and it goes "k I see what you did there" and hands you back the actual values. Reverse-formatting, no cap.
π¦ SYNOPSIS π¦
int sscanf (const char *buf , const char *fmt , ... );
π ARGUMENTS π
bufβ input buffer. This is the text you're unformatting, the raw material, the main character. πfmtβ formatting of buffer. The blueprint that tellssscanfhow to read that buffer, iykyk. π§...β resulting arguments. The whole point β where the parsed goodies land. π«Ά
π SEE ALSO π
Kernel file ./lib/vsprintf.c β and its whole friend group, fr fr:
simple_strtoull(9)simple_strtoul(9)simple_strtol(9)simple_strtoll(9)vsnprintf(9)vscnprintf(9)snprintf(9)scnprintf(9)vsprintf(9)sprintf(9)vbin_printf(9)bstr_printf(9)vsscanf(9)
That's the whole page bestie, go parse something iconic π β¨
Sign-off tea π: this one lives in ./lib, dated October 2026, and it's page sscanf(9) of the Kernel API Manual. Periodt. π
π¦ 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