STRTON(3)
π NAME π
okay so bestie, welcome to STRTON(3) β this icon converts a string to a long integer, and honestly sheβs giving parser main-character energy β¨
πΈ SYNOPSIS πΈ
long strton(char* s, char** e)
π DESCRIPTION π
strton converts the nul-terminated string s to a long integer. If e is not 0, then *e gets set to point to the first unrecognized character in s. Leading spaces in s are ignored β yes, sheβs polite like that π
A number is composed of sign-base-number-suffix. All of those parts except number are optional, so donβt panic. The sign may be + or -.
The base may be:
0xβ for hexadecimal;0β for octal; ornn#β for base2 β€ nn β€ 36.
For bases greater than 10, the additional digits are taken from the set [a-zA-Z] β lowercase and uppercase both pulling up, periodt π
The suffix multiplies the converted number and may be:
bβ block (512)gβ giga (1024 * 1024 * 1024)kβ kilo (1024)mβ mega (1024 * 1024)
π¦ SEE ALSO π¦
Thatβs the STRTON(3) page, bestie β signing off with all the STRTON(3) footer vibes and zero missing details ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms