atoll() — Convert character string to signed long long
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.
General description
The function 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 — Define standard library functions
- atoi() — Convert character string to integer
- atol() — Convert character string to long
- strtol() — Convert Character String to Long
- strtoll() — Convert String to Signed Long Long
- strtoul() — Convert String to Unsigned Integer
- strtoull() — Convert String to Unsigned Long Long