unirev

Reverses the order of all characters in a string, except for the null terminating character

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Unicode

Syntax

   #include <unicode.h> 
    
   N_EXTERN_LIBRARY(punicode) unirev  ( 
      punicode   s);
   

Pascal Syntax

   uses netwin32 
    
   Function unirev 
     (s : punicode            
   ) : punicode;
   

Parameters

s
(OUT) Points to the string to reverse.

Return Values

Returns a pointer to the reversed string.

Remarks

After calling unirev, the original contents of the string pointed to by the s parameter are replaced by the reversed string. The terminating NULL character is not reversed. For example, unirev changes "string" to "gnirts."

unirev corresponds to the C strrev function.

For sample code, see Section 3.25, Example: unirev.