mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
c049dd5a78
* libc/include/stdlib.h (strtof): New prototype (from C99). (strtodf): Changed from prototype to macro which redefines to strtof. * libc/stdlib/atof.c: Change documentation to refer to strtof instead of strtodf. * libc/stdlib/atoff.c (atoff): Change to call strtof instead of strtodf. * libc/stdlib/strtod.c (strtodf): Renamed to strtof. (strtof): New function. * libm/test/convert.c (test_strtodf): Renamed to test_strtof which calls strtof.
10 lines
114 B
C
10 lines
114 B
C
#include <stdlib.h>
|
|
#include <_ansi.h>
|
|
|
|
float
|
|
_DEFUN (atoff, (s),
|
|
_CONST char *s)
|
|
{
|
|
return strtof (s, NULL);
|
|
}
|