unipbrk

Scans a specified string for a given set of characters.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  unicode_t *unipbrk (
     const unicode_t   *s1,
     const unicode_t   *s2);
  

Parameters

s1

(IN) Points to the string to scan.

s2

(IN) Points to the character set.

Return Values

Returns a pointer to the first occurrence of any character in the s2 parameter. Returns NULL if no characters specified in the s2 parameter occur in the string pointed to by the s1 parameter.

Remarks

The unipbrk function scans the string pointed to by the s1 parameter for the first occurrence of any character appearing in the s2 parameter.

The unipbrk function corresponds to the strpbrk function.

See Also