summaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/atoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/atoff.c')
-rw-r--r--newlib/libc/stdlib/atoff.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/atoff.c b/newlib/libc/stdlib/atoff.c
new file mode 100644
index 00000000000..9c682c47a28
--- /dev/null
+++ b/newlib/libc/stdlib/atoff.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+#include <_ansi.h>
+
+float
+_DEFUN (atoff, (s),
+ _CONST char *s)
+{
+ return strtodf (s, NULL);
+}