3.25 Example: unirev

   /*  exrev.c - Sample code for unirev function. 
       Reverse string in place. 
   */ 
   
   #include <nunicode.h> 
   #include <assert.h> 
   
   void main(void) 
   { 
      unicode str[5]; 
      punicode ret; 
      unicpy(str,L"abcd"); 
      ret = unirev(str); 
      assert(unicmp(str, L"dcba") == 0); 
      assert(ret==str); 
   }