This example shows how to locate the last occurrence of a code element in a Unicode string.
#include <stdio.h> #include <unidef.h> int main(void) { UniChar ucs[] = L"computer"; UniChar uc = L't'; UniChar *puni; puni = UniStrrchr(ucs, uc); if (puni) printf("The character is contained in the string\n"); return (ULS_SUCCESS); }