simple_strtoul(9)
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:
simple_strtoull(9)simple_strtol(9)simple_strtoll(9)vsnprintf(9)vscnprintf(9)snprintf(9)scnprintf(9)vsprintf(9)sprintf(9)vbin_printf(9)bstr_printf(9)vsscanf(9)sscanf(9)
π 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
- 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