rework langinfo code for ABI compat and for use by time code
[musl] / src / locale / strcoll.c
1 #include <string.h>
2 #include <locale.h>
3 #include "libc.h"
4
5 int __strcoll_l(const char *l, const char *r, locale_t loc)
6 {
7         return strcmp(l, r);
8 }
9
10 int strcoll(const char *l, const char *r)
11 {
12         return __strcoll_l(l, r, LC_GLOBAL_LOCALE);
13 }
14
15 weak_alias(__strcoll_l, strcoll_l);