unicspn

Scans a specified string for the initial segment not containing any subset of the given set of characters.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  size_t unicspn (
     const unicode_t   *string,
     const unicode_t   *charset);
  

Parameters

string

(IN) Points to the string to be scanned.

charset

(IN) Points to the character set.

Return Values

Returns the length of the initial segment of string, consisting entirely of characters not from charset.

Remarks

The unicspn function corresponds to the strcspn function.

See Also

unispn