aboutsummaryrefslogtreecommitdiff
path: root/src/string/wmemcmp.c
blob: ce36498195d4918ca7d899872c0c13d29b4ec283 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <wchar.h>

int wmemcmp(const wchar_t *l, const wchar_t *r, size_t n)
{
	for (; n && *l==*r; n--, l++, r++);
	return n ? (*l < *r ? -1 : *l > *r) : 0;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif