C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
strtod, _strtold, strtol, strtoul
 Description Example                     Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Include:   <stdlib.h>
 
  Syntax:    double strtod( char *nptr, char **endptr );
             long double _strtold ( char *nptr, char **endptr );
             long strtol( char *nptr, char **endptr, int base );
             unsigned long strtoul( char *nptr, char **endptr, int base );
 
  Returns:   (strtod) the converted value; overflow returns ±HUGE_VAL,
                      underflow returns 0.
             (_strtold) the long double-precision value of the floating-
                        point number if successful; _LHUGE_VAL on
                        overflow; otherwise, 0.
             (strtol) the converted value; overflow returns LONG_MAX or
                      LONG_MIN, depending on sign of converted value.
             (strtoul) the converted value if successful, or 0 if not;
                       and ULONG_MAX on overflow.
 
  See also:  atof, atol, _ecvt, _ltoa
                                    -♦-