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

NNAAMMEE
     aattooii - convert ASCII string to 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>>

     _i_n_t
     aattooii(_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oii() function converts the initial portion of the string pointed to
     by _n_p_t_r to _i_n_t_e_g_e_r representation.

     It is equivalent to:

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

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

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

BSD Experimental                 June 29, 1991                               1







































