StrRChr function
Searches a string for the last occurrence of a specified character. The comparison is case-sensitive.
Syntax
PTSTR StrRChr( _In_ PTSTR pszStart, _In_opt_ PCTSTR pszEnd, TCHAR wMatch );
Parameters
- pszStart [in]
-
Type: PTSTR
A pointer to the null-terminated string to be searched.
- pszEnd [in, optional]
-
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] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
StrRChrW (Unicode) and StrRChrA (ANSI) |