StrRChrA function

Searches a string for the last occurrence of a specified character. The comparison is case-sensitive.

Syntax

PCSTR StrRChrA(
  PCSTR pszStart,
  PCSTR pszEnd,
  WORD  wMatch
);

Parameters

pszStart

Type: PTSTR

A pointer to the null-terminated string to be searched.

pszEnd

Type: PCTSTR

A pointer into the source string that defines the range of the search. Set pszEnd to point to a character in the string and the search will stop with the preceding character. Set pszEnd to NULL to search the entire string.

wMatch

Type: TCHAR

The character to search for.

Return Value

Type: PTSTR

Returns a pointer to the last occurrence of the character in the string, if successful, or NULL if not.

Remarks

The comparison assumes that pszEnd points to the end of the string.

Requirements

   
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 4.71 or later)