From c049dd5a782f36ca5f6eeb39e110d5774631aa1c Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 6 Dec 2002 18:58:51 +0000 Subject: 2002-12-06 Jeff Johnston * 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. --- newlib/libm/test/convert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newlib/libm/test') diff --git a/newlib/libm/test/convert.c b/newlib/libm/test/convert.c index 51bddfdfe..a74828027 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"); -- cgit v1.2.3