simple_strtol(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

okay so bestie, this is simple_strtol(9) from the Kernel API Manual ✨ and no cap, its whole main-character job is to convert a string to a signed long. That’s the vibe πŸ’–

✨ SYNOPSIS ✨

long simple_strtol (const char *cp , char **endp , unsigned int base );

πŸŽ€ ARGUMENTS πŸŽ€

  • cp β€” the start of the string 🌸
  • endp β€” a pointer to the end of the parsed string will be placed here 🫢
  • base β€” the number base to use πŸ’…

πŸ’… DESCRIPTION πŸ’…

This function has caveats. Like, actual caveats β€” not a drill 😭 Please use kstrtol instead, periodt.

⚠️ caveat check: simple_strtol has caveats, and the recommendation is kstrtol.

🌈 SEE ALSO 🌈


xoxo, signed off from ./lib, October 2026 β€” catch u later, bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from