atoll()

Converts a character string to a value of type longlong.

  #include <stdlib.h>
  
  int atoll(const char *nptr);    
Parameter

nptr

A pointer to the string to be converted.

Remarks

The atoll() function converts the character array pointed to by nptr to an integer of type long long. Except for its behavior on error, this function is the equivalent of the call

  strtol(nptr, (char **)NULL, 10);   
  

This function sets the global variable errno to ERANGE if the converted value cannot be expressed as a value of type long int.

atoll() returns an integer value of type long long.

This function is not specified in the ISO/IEC standards. It is an extension of the standard library.