/* exncmp.c - Sample code for unincmp.
Case sensitive comparison of n chars.
*/
#include <nunicode.h>
#include <assert.h>
void main(void)
{
nint result;
result = unincmp(L"cat", L"catch", 3); /* Match in first 3 chars */
assert (result == 0);
result = unincmp(L"cat", L"catch", 4); /* Not a match in 4 chars */
assert (result != 0);
result = unincmp(L"CAT", L"cat", 2); /* Case-sensitive. No match */
assert (result != 0);
}