3.17 Example: unilen

   /*  exlen.c - Sample code for unilen function. 
       Returns the length of the string in unicode characters, 
       excluding the terminating NULL.
   */
    
   #include <nunicode.h> 
   #include <assert.h>
    
   void main(void) 
   { 
      nint i; 
      i = unilen(L"cat"); 
      assert (i==3); 
      i = unilen(L"kitten"); 
      assert (i==6); 
   }