Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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)

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.