xref: /openbsd-src/lib/libc/locale/wcscoll_l.c (revision 3a628b46e7aaa520a6215eccabf31d313c2e7de0)
1*3a628b46Sschwarze /*	$OpenBSD: wcscoll_l.c,v 1.1 2017/09/05 03:16:13 schwarze Exp $ */
2*3a628b46Sschwarze /*
3*3a628b46Sschwarze  * Written in 2017 by Ingo Schwarze <schwarze@openbsd.org>.
4*3a628b46Sschwarze  * Released into the public domain.
5*3a628b46Sschwarze  */
6*3a628b46Sschwarze 
7*3a628b46Sschwarze #include <wchar.h>
8*3a628b46Sschwarze 
9*3a628b46Sschwarze /*
10*3a628b46Sschwarze  * Locale-dependent collation is intentionally unsupported.
11*3a628b46Sschwarze  */
12*3a628b46Sschwarze int
wcscoll_l(const wchar_t * s1,const wchar_t * s2,locale_t locale)13*3a628b46Sschwarze wcscoll_l(const wchar_t *s1, const wchar_t *s2,
14*3a628b46Sschwarze     locale_t locale __attribute__((__unused__)))
15*3a628b46Sschwarze {
16*3a628b46Sschwarze 	return wcscmp(s1, s2);
17*3a628b46Sschwarze }
18