wcsspn

Computes the length of a wide-character substring.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  size_t  wcsspn (
     const wchar_t   *wcs,
     const wchar_t   *charset);
  

Parameters

wcs

(IN) Points to a wide-character string to scan.

charset

(IN) Points to a set of wide characters to locate in wcs.

Return Values

Returns the length of the initial segment.

Remarks

The wcsspn function computes the length of the maximum initial segment of the string pointed to by wcs, which consists entirely of characters from the string pointed to by charset.

See Also