Find a character in a string.
#include <ldap_utf8.h>
char * ldap_x_utf8_strchr (
const char *str,
const char *chr);
(IN) Null-terminated UTF-8 string to search.
(IN) Points to the UTF-8 character to be located.
Returns the first occurrence of chr in str, or NULL if not found.
char utstr[] = { ’a’, ’b’, 0xe2U, 0x98U, 0xa0U, ’x’, ’y’, 0 };
char chr[] = { 0xe2U, 0x98U, 0xa0U };
char *p = ldap_x_utf8_strchr(utstr, chr); /* Returns utstr+2 */