simple_strtoul(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

simple_strtoul(9) β€” Kernel API Manual ✨

🌸 NAME 🌸

simple_strtoul β€” convert a string to an unsigned long 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

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

🫢 ARGUMENTS 🫢

  • cp β€” the start of the string, bestie πŸ’–
  • endp β€” this is where a pointer to the end of the parsed string will be placed πŸ’…
  • base β€” the number base to use ✨

πŸ’€ DESCRIPTION πŸ’€

okay so real talk 😭 this function has caveats. Please use kstrtoul instead. no cap.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./lib/vsprintf.c is the source vibe, and here’s the whole friend group:


πŸ’– and that’s the page! it comes from ./lib, dated October 2026, and it’s filed under simple_strtoul(9) β€” bye bestie, slay your string conversions! πŸ’…

πŸ“¦ where this page comes from