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

StrSpn function

Obtains the length of a substring within a string that consists entirely of characters contained in a specified buffer.

Syntax


int StrSpn(
  _In_  PCTSTR psz,
  _In_  PCTSTR pszSet
);

Parameters

psz [in]

Type: PCTSTR

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

pszSet [in]

Type: PCTSTR

A pointer to a null-terminated character buffer that contains the set of characters for which to search.

Return value

Type: int

Returns the length, in characters, of the matching string or zero if no match is found.

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

StrSpnW (Unicode) and StrSpnA (ANSI)

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.