This example shows how to search a Unicode string for the first occurence of a code element.
#include <stdio.h> #include <unidef.h> int main(void) { UniChar ucs1[] = L"computer program"; UniChar *puni; UniChar uni_char = L'p'; puni = UniStrchr(ucs1, uni_char); if(puni) { printf("The character was found in the string\n"); return (ULS_SUCCESS); } }