aboutsummaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-03-01 23:24:45 -0500
committerRich Felker <dalias@aerifal.cx>2012-03-01 23:24:45 -0500
commite0614f7cd418afedd06c9bcd5abb965608bc52f8 (patch)
treeb4b51646b9f65279caa01c3413e42060fe95c395 /src/locale
parent899b13cae77469a9ed1f076c456b66d567af69d8 (diff)
downloadmusl-e0614f7cd418afedd06c9bcd5abb965608bc52f8.zip
musl-e0614f7cd418afedd06c9bcd5abb965608bc52f8.tar.gz
musl-e0614f7cd418afedd06c9bcd5abb965608bc52f8.tar.bz2
add all missing wchar functions except floating point parsers
these are mostly untested and adapted directly from corresponding byte string functions and similar.
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/wcscoll_l.c6
-rw-r--r--src/locale/wcsxfrm_l.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/locale/wcscoll_l.c b/src/locale/wcscoll_l.c
new file mode 100644
index 0000000..f257ec8
--- /dev/null
+++ b/src/locale/wcscoll_l.c
@@ -0,0 +1,6 @@
+#include <wchar.h>
+
+int wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale)
+{
+ return wcscoll(l, r);
+}
diff --git a/src/locale/wcsxfrm_l.c b/src/locale/wcsxfrm_l.c
new file mode 100644
index 0000000..831998e
--- /dev/null
+++ b/src/locale/wcsxfrm_l.c
@@ -0,0 +1,6 @@
+#include <wchar.h>
+
+size_t wcsxfrm_l(wchar_t *dest, const wchar_t *src, size_t n, locale_t locale)
+{
+ return wcsxfrm(dest, src, n);
+}