Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StrChrNIW function

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

Syntax


PWSTR StrChrNIW(
  _In_  PCWSTR pszStart,
  WCHAR wMatch,
  UINT cchMax
);

Parameters

pszStart [in]

Type: PCWSTR

A pointer to the string to be searched.

wMatch

Type: WCHAR

The character to be used for comparison.

cchMax

Type: UINT

The maximum number of characters to search.

Return value

Type: PWSTR

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

Remarks

StrChrNIW searches for wMatch from pszStart to pszStart + cchMax, or until a NULL character is encountered.

To help ensure optimal performance, pszStart should be word-aligned.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shlwapi.h

Library

Shlwapi.lib

DLL

Shlwapi.dll (version 6.0 or later)

See also

StrChr
StrChrI

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.