doesn't take numbers

Dave Peticolas dave@krondo.com
03 Aug 2001 23:08:53 -0700


On 03 Aug 2001 22:19:41 -0500, Linas Vepstas wrote:
> On Fri, Aug 03, 2001 at 03:34:37PM -0700, Dave Peticolas was heard to remark:
> > 
> > It's best to use strtoll, atoll is identified as obsolete
> > by the glibc documentation. 
> 
> ? 
> man atoll
> 
> CONFORMING TO
>        SVID 3, POSIX.1, BSD 4.3, ISO/IEC 9899.  ISO/IEC 9899:1990
>        (C89) and POSIX.1 (1996  edition)  include  the  functions
>        atoi() and atol() only; C99 adds the function atoll().
> 
> 
> seems to be saying that atoll is a part of the C99 standard ...
> so I can't imagine how it will become 'obsolete' ...

The man pages for libc are no longer being kept up-to-date.
The canonical source for documentation is the texinfo pages
for 'libc'.

On my system, 'info libc' followed by a search for atoll gives:

 - Function: long long int atoll (const char *STRING)
     This function is similar to `atol', except it returns a `long long
     int'.

     The `atoll' function was introduced in ISO C99.  It too is
     obsolete (despite having just been added); use `strtoll' instead.

dave