unirchr

Scans a string in the reverse direction, searching for the last occurrence of a given 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) unirchr  ( 
      const unicode N_FAR  *s,  
      unicode               c);
   

Pascal Syntax

   uses netwin32 
    
   Function unirchr 
     (s : const unicode;         
      c : unicode            
   ) : punicode;
   

Parameters

s
(IN) Points to the string to scan.
c
(IN) Specifies the character to find.

Return Values

Returns a pointer to the last occurrence of the character specified by the c parameter. NULL is returned if the character specified by the c parameter does not occur in the string pointed to by the s parameter.

Remarks

unirchr searches for the last occurrence of the character specified by the c parameter in the string pointed to by the s parameter. It considers the NULL terminator to be part of the string.

unirchr corresponds to the C strrchr function.

For sample code, see Section 3.24, Example: unirchr.

See Also

unichr