wcscspn

Computes the length of a wide-character string consisting of characters not from a given set.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

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

Parameters

ws1

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

charset

(IN) Points to a null-terminated set of wide characters to exclude from the length.

Return Values

Returns the length of the computed string segment.

Remarks

The wcscspn function computes the length of the initial segment of the string pointed to by ws1, which consists entirely of characters not from the string pointed to by charset.

See Also

wcsspn