aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/string/wcsncmp.c
blob: 4ab32a924c4657dadd98677d4771042f120f43c8 (plain)
1
2
3
4
5
6
7
#include <wchar.h>

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