summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/locale/strtod_l.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/locale/strtod_l.c')
-rw-r--r--libc-top-half/musl/src/locale/strtod_l.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/locale/strtod_l.c b/libc-top-half/musl/src/locale/strtod_l.c
new file mode 100644
index 0000000..574ba14
--- /dev/null
+++ b/libc-top-half/musl/src/locale/strtod_l.c
@@ -0,0 +1,22 @@
+#define _GNU_SOURCE
+#include <stdlib.h>
+#include <locale.h>
+
+float strtof_l(const char *restrict s, char **restrict p, locale_t l)
+{
+ return strtof(s, p);
+}
+
+double strtod_l(const char *restrict s, char **restrict p, locale_t l)
+{
+ return strtod(s, p);
+}
+
+long double strtold_l(const char *restrict s, char **restrict p, locale_t l)
+{
+ return strtold(s, p);
+}
+
+weak_alias(strtof_l, __strtof_l);
+weak_alias(strtod_l, __strtod_l);
+weak_alias(strtold_l, __strtold_l);