strtol, strtoll
cppreference.com
[] |
Google. . , . , . |
<metanoindex/>
<tbody> </tbody> <stdlib.h>
|
||
long strtol( const char *str, char **str_end, int base ); |
||
long long strtoll( const char *str, char **str_end, int base ); |
( C99) | |
,
str. ( isspace) , , -n ( n=base) . :
- ()
- () (
0), (,80) - () (
0x0X), (,160) - .
{0,2,3,...,36}. 2 {0,1}, 3 {0,1,2}, . , 10, , Aa 11, Zz 36. .
base 0, : 0, , 0x 0X, , .
| str | ||
| str_end | .
| |
| base | '
|
- , ,
str. - ,
0.
| : |
.
(C99) |
() |
(C99) |
() |
C++ strtol, strtoll
| |