Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - strtod http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                  strtod

   Usage
   #include <stdlib.h>
   double strtod(char *nptr,char **endptr);

   Description
   strtod  converts  the  ASCII string pointed to by  nptr  to  a  double
   precision  value.  It will recognize white space  then  an  optionally
   signed string of digits containing an optional decimal point. It  will
   stop reading the string at the first character that doesn't  represent
   a  part of the number. A pointer to that character will be  stored  in
   the object endptr if endptr is not NULL.

   Example
   See strtoul

   Return Value
   If  correct values would cause an overflow, plus or minus HUGE_VAL  is
   returned  according  to  the sign and errno is set to  ERANGE.  If  an
   unrecognized  character is encountered before a legal character,  zero
   is  returned.  If  underflow then 0 is returned and errno  is  set  to
   ERANGE.


See Also: atof scanf

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson