/* The function returns an integer less than, equal to, or greater than zero if @s1 (or the first  */
int ntfs_ucsncmp(const ntfschar *s1, const ntfschar *s2, size_t n)
/* The function returns an integer less than, equal to, or greater than zero if @s1 (or the first  */
int ntfs_ucsncmp(const ntfschar *s1, const ntfschar *s2, size_t n)
{
	u16 c1, c2;
	size_t i;
	for (i = 0; i < n; ++i) {
		c1 = le16_to_cpu(s1[i]);
		c2 = le16_to_cpu(s2[i]);
		if (c1 < c2)
			return -1;
		if (c1 > c2)
			return 1;
		if (!c1)
			break;
	}
	return 0;
}