unispn

Finds the first segment of a string consisting entirely of characters from another string.

Library:LibC
Service:Characters and Strings

Syntax

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

Parameters

string

(IN) Points to the string to test.

charset

(IN) Points to the character set.

Return Values

Returns the length of the first segment of the string pointed to by the string parameter that consists entirely of characters from the charset parameter.

Remarks

The unispn function corresponds to the strspn function.

See Also

unicspn