home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat3 / atoi.0 < prev    next >
Text File  |  1993-12-07  |  882b  |  67 lines

  1.  
  2. ATOI(3)                    UNIX Programmer's Manual                    ATOI(3)
  3.  
  4. NNAAMMEE
  5.      aattooii - convert ASCII string to integer
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssttddlliibb..hh>>
  9.  
  10.      _i_n_t
  11.      aattooii(_c_o_n_s_t _c_h_a_r _*_n_p_t_r)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The aattooii() function converts the initial portion of the string pointed to
  15.      by _n_p_t_r to _i_n_t_e_g_e_r representation.
  16.  
  17.      It is equivalent to:
  18.  
  19.            (int)strtol(nptr, (char **)NULL, 10);
  20.  
  21. SSEEEE AALLSSOO
  22.      atof(3),  atol(3),  strtod(3),  strtol(3),  strtoul(3)
  23.  
  24. SSTTAANNDDAARRDDSS
  25.      The aattooii() function conforms to ANSI C3.159­1989 (``ANSI C'').
  26.  
  27. BSD Experimental                 June 29, 1991                               1
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.