Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
atoll - convert string to long long integer (long long int)
&pagelevel(4)&pagelevel
Syntax | #include <stdlib.h> long long int atoll(const char *str); |
Description | atoll() converts an EBCDIC string to which str points into an integer of type long long . The string to be converted may be formatted as follows [tab ...][+|-]digit... All characters that produce white space are legal for tab (see the definition under isspace() ). The atoll(str) function differs from strtoll(str,(char**)NULL,10) only in error handling. |
Return val. | Integer value of type long long |
for strings formatted as described above and representing a numeric value. |
0 for strings that do not conform to the syntax described above. |
LONG_MAX or LLONG_MIN
in the case of an overflow, depending on the sign. |
Notes | atoll() is completely contained in strtoll() . However, the function continues to be offered because it is used in many existing applications. atoll() also recognizes strings that begin with digits but then end with any character.
atoll() cuts off the numeric part, converts it according to the above description, and ignores the rest.
|
See also | atof() , atoi() , atol(), strtod() , strtol() , strtoll(), strtoul() , strtoull() , stdlib.h .
|