blob: 14bb8b9f9607991872e9c1861481ce8ea07df88e [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#include <wchar.h>
Rich Felker4b0306c2013-07-24 18:17:09 -04002#include <locale.h>
Rich Felker4c485012014-07-02 21:46:41 -04003#include "locale_impl.h"
Rich Felker4b0306c2013-07-24 18:17:09 -04004#include "libc.h"
Rich Felker0b44a032011-02-12 00:22:29 -05005
6/* FIXME: stub */
Rich Felker4b0306c2013-07-24 18:17:09 -04007int __wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale)
Rich Felker0b44a032011-02-12 00:22:29 -05008{
9 return wcscmp(l, r);
10}
Rich Felker4b0306c2013-07-24 18:17:09 -040011
12int wcscoll(const wchar_t *l, const wchar_t *r)
13{
Rich Felker4c485012014-07-02 21:46:41 -040014 return __wcscoll_l(l, r, CURRENT_LOCALE);
Rich Felker4b0306c2013-07-24 18:17:09 -040015}
16
17weak_alias(__wcscoll_l, wcscoll_l);