summaryrefslogtreecommitdiff
path: root/src/string/wcsncmp.c
blob: 1b159f41139f47f104f28b8570f9929732abb1b7 (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; l++, r++);
	return n ? *l - *r : 0;
}