home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdlib / strtod.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  512 b   |  28 lines

  1. @node strtod, string
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdlib.h>
  6.  
  7. double strtod(const char *s, char **endp);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function converts as many characters of @var{s} that look like a
  13. floating point number into one, and sets @var{*endp} to point to the
  14. first unused character. 
  15.  
  16. @subheading Return Value
  17.  
  18. The value the string represented. 
  19.  
  20. @subheading Example
  21.  
  22. @example
  23. char *buf = "123ret";
  24. char *bp;
  25. double x = strtod(buf, &bp);
  26. @end example
  27.  
  28.