about summary refs log tree commit diff
path: root/src/stdlib/atof.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/atof.c')
-rw-r--r--src/stdlib/atof.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdlib/atof.c b/src/stdlib/atof.c
new file mode 100644
index 00000000..f7fcd826
--- /dev/null
+++ b/src/stdlib/atof.c
@@ -0,0 +1,6 @@
+#include <stdlib.h>
+
+double atof(const char *s)
+{
+	return strtod(s, 0);
+}