utf8pbrk

Locates the first occurrence in one string of any character from another string.

Library:LibC
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  utf8_t *utf8pbrk (
     const utf8_t   *s1,   
     const utf8_t   *s2);
  

Parameters

s1

(IN) Point to the string for which to locate the first occurrence of any character from the string pointed to by s2.

s2

(IN) Points to the string containing the characters to be located in the string pointed to by s1.

Return Values

Returns a pointer to the located character, or NULL if no character from s2 occurs in s1.

Remarks

The utf8pbrk function works the same as its ANSI/ISO equivalent, strpbrk, except that utf8pbrk works on strings containing UTF-8 characters, which can be composed of one or two bytes. UTF-8 characters can require up to six bytes total, but NetWare does not generate such characters.

See Also