www.delorie.com/djgpp/doc/libc/libc_57.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

atoll

Syntax

 
#include <stdlib.h>

long long int atoll(const char *string);

Description

Convert as much of the string as possible to an equivalent long long integer value.

This function is almost like strtoll(string, NULL, 10) (see section strtoll).

Return Value

The equivalent value, or zero if the string does not represent a number.

Portability

ANSI/ISO C C99; not C89
POSIX 1003.1-2001; not 1003.2-1992

Example

 
main(int argc, char **argv)
{
  long long int l = atoll(argv[1]);
  ...
}

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004