2 Copyright © 2015, The AROS Development Team. All rights reserved.
5 C99 function strtold().
13 /*****************************************************************************
26 Convert a string of digits into a long double.
29 str - The string which should be converted. Leading
30 whitespace are ignored. The number may be prefixed
31 by a '+' or '-'. An 'e' or 'E' introduces the exponent.
32 Komma is only allowed before exponent.
33 endptr - If this is non-NULL, then the address of the first
34 character after the number in the string is stored
38 The value of the string. The first character after the number
39 is returned in *endptr, if endptr is non-NULL. If no digits can
40 be converted, *endptr contains str (if non-NULL) and 0 is
44 We make the compiler do an internal conversion from a double
45 to a long double. Because of this we lose a some precision, but for
51 NAN is not handled at the moment
58 ******************************************************************************/
60 return (long double)strtod(str
, endptr
);
65 void strtold (const char * str
,char ** endptr
)
70 #endif /* AROS_NOFPU */