ATOI(3) 1990 ATOI(3) NNAAMMEE atoi - convert ASCII string to integer SSYYNNOOPPSSIISS ##iinncclluuddee <<ssttddlliibb..hh>> iinntt aattooii((ccoonnsstt cchhaarr **nnppttrr));; DDEESSCCRRIIPPTTIIOONN The _a_t_o_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); SSEEEE AALLSSOO atof(3), atol(3), strtod(3), strtol(3), strtoul(3) SSTTAANNDDAARRDDSS AAttooii conforms to ANSI X3.159-1989 (``ANSI C''). Printed 7/27/90 May 1