sscanf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 tells sscanf how 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:


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