*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> atol (3)              
Title
Content
Arch
Section
 

ATOL(3)

Contents


NAME    [Toc]    [Back]

     atol - convert ASCII string to long integer

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     long
     atol(const char *nptr);

DESCRIPTION    [Toc]    [Back]

     The atol() function converts the initial portion of the string pointed to
     by nptr to long integer representation.

     It is equivalent to:

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

SEE ALSO    [Toc]    [Back]

      
      
     atof(3), atoi(3), strtod(3), strtol(3), strtoul(3)

STANDARDS    [Toc]    [Back]

     The atol() function conforms to ANSI X3.159-1989 (``ANSI C'').

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
atol FreeBSD convert ASCII string to long or long long integer
atoll FreeBSD convert ASCII string to long or long long integer
atoll NetBSD convert ASCII string to long long integer
atoll OpenBSD convert ASCII string to long long integer
a64l IRIX convert between long integer and base-64 ASCII string
l64a NetBSD convert between a long integer and a base-64 ASCII string
l64a Tru64 convert long integer and base-64 ASCII string
l64a_r NetBSD convert between a long integer and a base-64 ASCII string
a64l NetBSD convert between a long integer and a base-64 ASCII string
a64l Tru64 convert long integer and base-64 ASCII string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service