X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..2be56ee90c5c5bee77895b8787a43e894249002b:/locale/FreeBSD/collcmp.c diff --git a/locale/FreeBSD/collcmp.c b/locale/FreeBSD/collcmp.c index 8cbd213..7f135bc 100644 --- a/locale/FreeBSD/collcmp.c +++ b/locale/FreeBSD/collcmp.c @@ -25,21 +25,22 @@ */ #include -__FBSDID("$FreeBSD: src/lib/libc/locale/collcmp.c,v 1.17 2003/08/03 19:28:23 ache Exp $"); +__FBSDID("$FreeBSD: src/lib/libc/locale/collcmp.c,v 1.18 2005/02/27 14:54:23 phantom Exp $"); -#include +#include +#include #include "collate.h" /* * Compare two characters using collate */ -int __collate_range_cmp(c1, c2) - int c1, c2; +__private_extern__ int +__collate_range_cmp(wchar_t c1, wchar_t c2, locale_t loc) { - static char s1[2], s2[2]; + static wchar_t s1[2], s2[2]; s1[0] = c1; s2[0] = c2; - return (strcoll(s1, s2)); + return (wcscoll_l(s1, s2, loc)); }