Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-12-06 21:58:51 +0300
committerJeff Johnston <jjohnstn@redhat.com>2002-12-06 21:58:51 +0300
commitc049dd5a782f36ca5f6eeb39e110d5774631aa1c (patch)
tree42a17e5eac109ebf1ada11bff536938b4d83e71c /newlib/libc/include/stdlib.h
parente25e377eb323e9ac6f6ea3b23f57a68293be2ae9 (diff)
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/libc/include/stdlib.h')
-rw-r--r--newlib/libc/include/stdlib.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index d6b14f222..3f0d00388 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -93,8 +93,12 @@ _PTR _EXFUN(realloc,(_PTR __r, size_t __size));
_VOID _EXFUN(srand,(unsigned __seed));
double _EXFUN(strtod,(const char *__n, char **__end_PTR));
double _EXFUN(_strtod_r,(struct _reent *,const char *__n, char **__end_PTR));
+float _EXFUN(strtof,(const char *__n, char **__end_PTR));
#ifndef __STRICT_ANSI__
-float _EXFUN(strtodf,(const char *__n, char **__end_PTR));
+/* the following strtodf interface is deprecated...use strtof instead */
+# ifndef strtodf
+# define strtodf strtof
+# endif
#endif
long _EXFUN(strtol,(const char *__n, char **__end_PTR, int __base));
long _EXFUN(_strtol_r,(struct _reent *,const char *__n, char **__end_PTR, int __base));