This example shows how to locate code elements in a Unicode string.
#include <stdio.h> #include <unidef.h> int main(void) { UniChar ucs1[] = L"computer"; UniChar ucs2[] = L"put"; UniChar *puni; puni = UniStrpbrk(ucs1, ucs2); if (puni) printf("The sub string was found\n"); return (ULS_SUCCESS); }