StrRStrIA function

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

Syntax

PCSTR StrRStrIA(
  PCSTR pszSource,
  PCSTR pszLast,
  PCSTR pszSrch
);

Parameters

pszSource

Type: PTSTR

A pointer to a null-terminated source string.

pszLast

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

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]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 4.71 or later)