
ATOL(3)                    UNIX Programmer's Manual                    ATOL(3)

NNAAMMEE
     aattooll - convert ASCII string to long integer

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssttddlliibb..hh>>

     _l_o_n_g
     aattooll(_c_o_n_s_t _c_h_a_r _*_n_p_t_r)

DDEESSCCRRIIPPTTIIOONN
     The aattooll() function converts the initial portion of the string pointed to
     by _n_p_t_r to _l_o_n_g _i_n_t_e_g_e_r representation.

     It is equivalent to:

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

SSEEEE AALLSSOO
     atof(3),  atoi(3),  strtod(3),  strtol(3),  strtoul(3)

SSTTAANNDDAARRDDSS
     The aattooll() function conforms to ANSI C3.159-1989 (``ANSI C'').

BSD Experimental                 June 29, 1991                               1







































