1 out of 1 rated this helpful - Rate this topic

StrChrI function

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

Syntax


PTSTR StrChrI(
  _In_  PTSTR pszStart,
  TCHAR wMatch
);

Parameters

pszStart [in]

Type: PTSTR

A pointer to the string to be searched.

wMatch

Type: TCHAR

The character to be used for comparison.

Return value

Type: PTSTR

Returns the address of the first occurrence of the character in the string if successful, or NULL otherwise.

Remarks

The comparison assumes pszStart points to the start of a null-terminated 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

StrChrIW (Unicode) and StrChrIA (ANSI)

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.