summaryrefslogtreecommitdiff
path: root/libc/stdlib/atoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/atoff.c')
-rw-r--r--libc/stdlib/atoff.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/stdlib/atoff.c b/libc/stdlib/atoff.c
new file mode 100644
index 0000000..9c682c4
--- /dev/null
+++ b/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);
+}