utf8rchr

Locates the last occurrence of a specified character in a string.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <utf8.h> 
   
  utf8_t  *utf8rchr (
     const utf8_t   *string,
     const utf8_t   *ch);
  

Parameters

string

(IN) Points to the string containing characters to be searched.

ch

(IN) Points to the character to locate.

Return Values

Returns a pointer to the located character or a NULL pointer if the character does not occur in the string.

Remarks

The utf8rchr function locates the last occurrence of ch in the string pointed to by string. The null-terminating character is considered to be part of the string.

See Also