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

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




STRTOD(3)		      1990			STRTOD(3)



NNAAMMEE
     strtod - convert ASCII string to double

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

     ddoouubbllee
     ssttrrttoodd((ccoonnsstt cchhaarr **nnppttrr,, cchhaarr ****eennddppttrr));;

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

     The expected form of the string is an optional plus (``+'')
     or minus sign (``-''), followed by a sequence of digits
     optionally containing a decimal-point character, optionally
     followed by an exponent.  An exponent consists of an ``E''
     or ``e'', followed by an optional plus or minus sign, fol-
     lowed by a sequence of digits.

     Leading white-space characters in the string (as defined by
     the _i_s_s_p_a_c_e(3) function) are skipped.

     The _s_t_r_t_o_d function returns the converted value, if any.

     If _e_n_d_p_t_r is not NULL, a pointer to the character after the
     last character used in the conversion is stored in the loca-
     tion referenced by _e_n_d_p_t_r.

     If no conversion is performed, zero is returned and the
     value of _n_p_t_r is stored in the location referenced by
     _e_n_d_p_t_r.

     If the correct value would cause overflow, plus or minus
     _H_U_G_E__V_A_L is returned (according to the sign of the value),
     and _E_R_A_N_G_E is stored in _e_r_r_n_o.  If the correct value would
     cause underflow, zero is returned and _E_R_A_N_G_E is stored in
     _e_r_r_n_o.

EERRRROORRSS
     [ERANGE]
	  Overflow or underflow occurred.

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

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

BBUUGGSS
     This manual page represents intent instead of actual prac-
     tice.  The _s_t_r_t_o_d(3) function is not currently available.



Printed 7/27/90                May				1