aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/test/convert.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-12-06 18:58:51 +0000
committerJeff Johnston <jjohnstn@redhat.com>2002-12-06 18:58:51 +0000
commitc049dd5a782f36ca5f6eeb39e110d5774631aa1c (patch)
tree42a17e5eac109ebf1ada11bff536938b4d83e71c /newlib/libm/test/convert.c
parente25e377eb323e9ac6f6ea3b23f57a68293be2ae9 (diff)
downloadnewlib-c049dd5a782f36ca5f6eeb39e110d5774631aa1c.zip
newlib-c049dd5a782f36ca5f6eeb39e110d5774631aa1c.tar.gz
newlib-c049dd5a782f36ca5f6eeb39e110d5774631aa1c.tar.bz2
2002-12-06 Jeff Johnston <jjohnstn@redhat.com>
* 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.
Diffstat (limited to 'newlib/libm/test/convert.c')
-rw-r--r--newlib/libm/test/convert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libm/test/convert.c b/newlib/libm/test/convert.c
index 51bddfd..a748280 100644
--- a/newlib/libm/test/convert.c
+++ b/newlib/libm/test/convert.c
@@ -24,12 +24,12 @@ _DEFUN_VOID(test_strtod)
}
void
-_DEFUN_VOID(test_strtodf)
+_DEFUN_VOID(test_strtof)
{
char *tail;
double v;
/* On average we'll loose 1/2 a bit, so the test is for within 1 bit */
- v = strtodf(pd->string, &tail);
+ v = strtof(pd->string, &tail);
test_mok(v, pd->value, 32);
test_iok(tail - pd->string, pd->endscan);
}
@@ -358,7 +358,7 @@ _DEFUN_VOID(test_cvt)
iterate(test_atof, "atof");
iterate(test_atoff, "atoff");
- iterate(test_strtodf, "strtodf");
+ iterate(test_strtof, "strtof");
int_iterate(test_atoi,"atoi");
int_iterate(test_atol,"atol");