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

StrStr function

Finds the first occurrence of a substring within a string. The comparison is case-sensitive.

Syntax


PTSTR StrStr(
  _In_  PTSTR pszFirst,
  _In_  PCTSTR pszSrch
);

Parameters

pszFirst [in]

Type: PTSTR

A pointer to the null-terminated string to search.

pszSrch [in]

Type: PCTSTR

A pointer to the substring to search for.

Return value

Type: PTSTR

Returns the address of the first occurrence of the matching 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

StrStrW (Unicode) and StrStrA (ANSI)

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.