Export (0) Print
Expand All

StrCSpnI function

Searches a string for the first occurrence of any of a group of characters. The search method is not case-sensitive, and the terminating NULL character is included within the search pattern match.

Syntax


int StrCSpnI(
  _In_  PCTSTR pszStr,
  _In_  PCTSTR pszSet
);

Parameters

pszStr [in]

Type: PCTSTR

A pointer to the null-terminated string to be searched.

pszSet [in]

Type: PCTSTR

A pointer to a null-terminated string containing the characters to search for.

Return value

Type: int

Returns the index of the first occurrence in pszStr of any character from pszSet, or the length of pszStr if no match is found.

Remarks

The return value of this function is equal to the length of the initial substring in pszStr that does not include any characters from pszSet.

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

StrCSpnIW (Unicode) and StrCSpnIA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft