2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
8 #include <wchar_private.h>
12 __wcsncasecmp(const wchar_t* wcs1
, const wchar_t* wcs2
, size_t count
)
17 cmp
= towlower(*wcs1
) - towlower(*wcs2
++);
18 /* note: won't overflow, since our wchar_t is guaranteed to never
19 have the highest bit set */
21 if (cmp
!= 0 || *wcs1
++ == L
'\0')
29 B_DEFINE_WEAK_ALIAS(__wcsncasecmp
, wcsncasecmp
);