set big endian as default for armeb aros target. (mschulz)
[AROS.git] / compiler / stdc / strtof.c
blob7c408d45ef01d8c269ca583c71e27f5517d751fa
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function strtof().
6 */
8 #ifndef AROS_NOFPU
10 #include <ctype.h>
11 #include <limits.h>
13 /*****************************************************************************
15 NAME */
16 #include <stdlib.h>
17 #include <math.h>
19 float strtof (
21 /* SYNOPSIS */
22 const char * str,
23 char ** endptr)
25 /* FUNCTION
26 Convert a floating-point number from an ASCII decimal
27 representation into a double-precision format.
29 INPUTS
30 str - The string which should be converted. Leading
31 whitespace are ignored.
32 endptr - If this is non-NULL, then the address of the first
33 character after the number in the string is stored
34 here.
36 RESULT
37 The float value of the string. The first character after the number
38 is returned in *endptr, if endptr is non-NULL. If no digits can
39 be converted, *endptr contains str (if non-NULL) and 0 is
40 returned.
42 NOTES
44 EXAMPLE
46 BUGS
48 SEE ALSO
49 strtod(), strtold()
51 INTERNALS
53 ******************************************************************************/
55 return strtod(str, endptr);
58 #endif /* AROS_NOFPU */