utf8rev

Reverses the character order in a string.

Library:LibC
Service:Characters and Strings

Syntax

  #include <utf8.h> 
   
  utf8_t *utf8rev (
     utf8_t   *string);
  

Parameters

string

(IN) Points to the string to be replaced.

Return Values

Returns the address of the original string.

Remarks

The utf8rev function replaces the original string with a string whose characters are in the reverse order.

The utf8rev function works the same as its ANSI/ISO equivalent, strrev, except that utf8rev works on strings containing UTF-8 characters, which can be composed of one or two bytes. UTF-8 characters may require up to six bytes total, but NetWare does not generate such characters.