This example shows how to copy a specific number of code elements in a Unicode string.
#include <stdio.h>
#include <unidef.h>
int main(void) {
UniChar ucs1[] = L"computer";
UniChar ucs2[10];
UniChar *puni;
size_t num_elems = 4;
puni = UniStrncpy(ucs2, ucs1, num_elems);
return (ULS_SUCCESS);
}