Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

StrRStrI function

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

Syntax


PTSTR StrRStrI(
  _In_     PTSTR  pszSource,
  _In_opt_ PCTSTR pszLast,
  _In_     PCTSTR pszSrch
);

Parameters

pszSource [in]

Type: PTSTR

A pointer to a null-terminated source string.

pszLast [in, optional]

Type: PCTSTR

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

pszSrch [in]

Type: PCTSTR

A pointer to the substring to search for.

Return value

Type: PTSTR

Returns the address of the last occurrence of the substring if successful, or NULL otherwise.

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

StrRStrIW (Unicode) and StrRStrIA (ANSI)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft