simple_strtoll(9)
π simple_strtoll π
okay so bestie, this one's from the Kernel API Manual and it's literally just simple_strtoll β convert a string to a signed long long. that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
long long simple_strtoll (const char *cp , char **endp , unsigned int base );
like yes that's the entire function signature, she's compact and she knows it π
π ARGUMENTS π
cpβ the start of the string, i.e. where you point her at the text she's about to read π«Άendpβ a pointer to the end of the parsed string will be placed here, so she'll tell you exactly where she stopped reading. v important.baseβ the number base to use. your call, main character. π
β¨ DESCRIPTION β¨
okay so lowkey this function has caveats. like, it's giving "works but maybe not the one." π
the manual is fr fr clear on this: please use kstrtoll instead.
no cap, that's the whole description. she's short, she's honest, she's iconic for admitting it. π
π¦ SEE ALSO π¦
- Kernel file
./lib/vsprintf.c simple_strtoull(9)simple_strtoul(9)simple_strtol(9)vsnprintf(9)vscnprintf(9)snprintf(9)scnprintf(9)vsprintf(9)sprintf(9)vbin_printf(9)bstr_printf(9)vsscanf(9)sscanf(9)
like that's a whole friend group right there, they all live in the same neighborhood and they all format strings π§π
and that's the page bestie!! this one ships out from ./lib and it's dated October 2026 β yeah, the future, she's ahead of her time πβ hope you ate this up, 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