This example shows how to compare a specific number of code elements.
#include <stdio.h>
#include <unidef.h>
int main(void) {
UniChar ucs1[] = L"computer";
UniChar ucs2[] = L"computer program";
size_t num_elems = 3;
int result = 0;
result = UniStrncmp(ucs1, ucs2, num_elems);
if ( result == 0 )
printf("The strings are identical\n");
else
printf("The strings are not identical\n");
return (ULS_SUCCESS);
}