This example shows how to determine the code element count of a Unicode string.

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

int main(void) {

int   elements;

         /* elements contains number of code elements in the Unicode string */

         elements = UniStrlen((UniChar *)L"program");

         return (ULS_SUCCESS);

}


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