Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #include <wchar.h> |
Rich Felker | 4b0306c | 2013-07-24 18:17:09 -0400 | [diff] [blame] | 2 | #include <locale.h> |
Rich Felker | 4c48501 | 2014-07-02 21:46:41 -0400 | [diff] [blame] | 3 | #include "locale_impl.h" |
Rich Felker | 4b0306c | 2013-07-24 18:17:09 -0400 | [diff] [blame] | 4 | #include "libc.h" |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 5 | |
6 | /* FIXME: stub */ | ||||
Rich Felker | 4b0306c | 2013-07-24 18:17:09 -0400 | [diff] [blame] | 7 | int __wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale) |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 8 | { |
9 | return wcscmp(l, r); | ||||
10 | } | ||||
Rich Felker | 4b0306c | 2013-07-24 18:17:09 -0400 | [diff] [blame] | 11 | |
12 | int wcscoll(const wchar_t *l, const wchar_t *r) | ||||
13 | { | ||||
Rich Felker | 4c48501 | 2014-07-02 21:46:41 -0400 | [diff] [blame] | 14 | return __wcscoll_l(l, r, CURRENT_LOCALE); |
Rich Felker | 4b0306c | 2013-07-24 18:17:09 -0400 | [diff] [blame] | 15 | } |
16 | |||||
17 | weak_alias(__wcscoll_l, wcscoll_l); |