4.3BSD-Reno/share/man/cat3/atof.0

Compare this file to the similar file:
Show the results in this format:




ATOF(3)                       1990			  ATOF(3)



NNAAMMEE
     atof - convert ASCII string to double

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssttddlliibb..hh>>

     ddoouubbllee
     aattooff((ccoonnsstt cchhaarr **nnppttrr));;

DDEESSCCRRIIPPTTIIOONN
     The _a_t_o_f function converts the initial portion of the string
     pointed to by _n_p_t_r to _d_o_u_b_l_e representation.

     It is equivalent to:

	  strtod(nptr, (char **)NULL);

SSEEEE AALLSSOO
     atoi(3), atol(3), strtod(3), strtol(3), strtoul(3)

SSTTAANNDDAARRDDSS
     AAttooff conforms to ANSI X3.159-1989 (``ANSI C'').

BBUUGGSS
     This manual page represents intent instead of actual prac-
     tice.  While it is intended that _a_t_o_f be implemented using
     _s_t_r_t_o_d(3), this has not yet happened.  In the current sys-
     tem, _a_t_o_f translates a string in the following form to a
     double: an optional string of spaces, followed by an
     optional sign (``+'' or ``-''), followed by a string of
     digits which may contain a decimal point (``.''), followed
     by an optional exponent flag (``E'' or ``e''), followed by
     an optionally signed integer.






















Printed 7/27/90                May				1