2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
6 #include <wchar_private.h>
10 __wcscmp(const wchar_t* wcs1
, const wchar_t* wcs2
)
15 cmp
= *wcs1
- *wcs2
++;
16 /* note: won't overflow, since our wchar_t is guaranteed to never
17 have the highest bit set */
19 if (cmp
!= 0 || *wcs1
++ == L
'\0')
27 B_DEFINE_WEAK_ALIAS(__wcscmp
, wcscmp
);