This example shows how to compare Unicode strings.

#include <stdio.h>
#include <unidef.h>

int main(void) {

UniChar    ucs1[] = L"computer";
UniChar    ucs2[] = L"program";
int        result = 0;

         result = UniStrcmp(ucs1, ucs2);

         if ( result == 0 )
             printf("The strings are identical\n");
         else
             printf("The strings are not identical\n");

         return (ULS_SUCCESS);


}


[Back: UniStrcmp - Remarks]
[Next: UniStrcmp - Topics]