Export (0) Print
Expand All

StrRChrI function

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

Syntax


PTSTR StrRChrI(
  _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

Shlwapi.h

Library

Shlwapi.lib

DLL

Shlwapi.dll (version 4.71 or later)

Unicode and ANSI names

StrRChrIW (Unicode) and StrRChrIA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft