[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/c/string/byte/atoi [Back]  [Original]

atoi, atol, atoll cppreference.com
cppreference.com

atoi, atol, atoll

cppreference.com
< c | string | byte

<metanoindex/>

<tbody> </tbody>
<stdlib.h>
int atoi( const char *str );
long atol( const char *str )
long long atoll( const char *str );
( C99)
, str.
:
Interprets an integer value in a byte string pointed to by str.
Google.
. .

, , . :

  • ()

, .. , .

str
:
pointer to the null-terminated byte string to be interpreted
Google.
. .

, str . , . , 0 .
:
Integer value corresponding to the contents of str on success. If the converted value falls out of range of corresponding return type, the return value is undefined. If no conversion can be performed, 0 is returned.
Google.
. .

.


() []

() []
C++ atoi, atol, atoll

Web Proxy Viewer  |  New URL  |  Original Page