ldap_x_utf8_strpbrk

Find first occurrence of a character from one string in another string.

Library:*ldapsdk.*
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap_utf8.h>
  
  char * ldap_x_utf8_strpbrk (
     const char *str,
     const char *set);
  

Parameters

str

(IN) Null-terminated UTF-8 string to search.

set

(IN) Null-terminated character set.

Return Values

Returns a pointer to the first occurrence of any character from set in str.

Example

  char utstr[] = { ’a’, ’b’, 0xe2U, 0x98U, 0xa0U, ’x’, ’y’, 0 };
  char set[] = { ’x’, 0xe2U, 0x98U, 0xa0U, 0 };
  char *p = ldap_x_utf8_strpbrk(utstr, set);       /* Returns utstr+2 */