simple_strtoll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 πŸ¦‹

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