Lstrcspn

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

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  size_t Lstrcspn (
     const char   *str,   
     const char   *charset);
  

Parameters

str

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

charset

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

Return Values

Returns the length of the computed string segment.

Remarks

The Lstrcspn function is a double-byte character interface. It computes the length of the initial segment of the string pointed to by str, which consists entirely of characters not from the string pointed to by charset. The terminating NULL character is not considered part of str.

See Also

Lstrspn