atoll() — Convert character string to signed long long
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | z/OS® V1R7 |
Format
#define _ISOC99_SOURCE
#include <stdlib.h>
long long atoll(const char *nptr);
Compile requirement: Use of this function
requires the long long data type. See z/OS XL C/C++ Language Reference for
information on how to make long long available.
General description
atoll() converts the initial portion of the string pointed to by nptr to a 'long long int'. This is equivalent to strtoll(nptr, (char **)NULL, 10).
Returned value
If successful, atoll() returns the converted signed long long value, represented in the string. If unsuccessful, it returns an undefined value.
Related information
- stdlib.h
- atof() — Convert character string to double
- atoi() — Convert character string to integer
- atol() — Convert character string to long
- fscanf(), scanf(), sscanf() — Read and format data
- strtod() — Convert character string to double
- strtol() — Convert character string to long
- strtoul() — Convert string to unsigned integer