home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / ixemul-39.47-env-bin.lha / man / cat3 / atof.0 < prev    next >
Text File  |  1993-12-07  |  1KB  |  67 lines

  1.  
  2. ATOF(3)                    UNIX Programmer's Manual                    ATOF(3)
  3.  
  4. NNAAMMEE
  5.      aattooff - convert ASCII string to double
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssttddlliibb..hh>>
  9.  
  10.      _d_o_u_b_l_e
  11.      aattooff(_c_o_n_s_t _c_h_a_r _*_n_p_t_r)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The aattooff() function converts the initial portion of the string pointed to
  15.      by _n_p_t_r to _d_o_u_b_l_e representation.
  16.  
  17.      It is equivalent to:
  18.  
  19.            strtod(nptr, (char **)NULL);
  20.  
  21. SSEEEE AALLSSOO
  22.      atoi(3),  atol(3),  strtod(3),  strtol(3),  strtoul(3)
  23.  
  24. SSTTAANNDDAARRDDSS
  25.      The aattooff() function conforms to ANSI C3.159­1989 (``ANSI C'').
  26.  
  27. BBUUGGSS
  28.      This manual page represents intent instead of actual practice.  While it
  29.      is intended that aattooff() be implemented using strtod(3),  this has not yet
  30.      happened.  In the current system, aattooff() translates a string in the fol­
  31.      lowing form to a double: a string of leading white space, possibly fol­
  32.      lowed by a sign (``+'' or ``­''), followed by a digit string which may
  33.      contain one decimal point (``.''), which may be followed by either of the
  34.      exponent flags (``E'' or ``e''), and lastly, followed by a signed or un­
  35.      signed integer.
  36.  
  37. BSD Experimental                 June 29, 1991                               1
  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.