Copy one UTF-8 character.
#include <ldap_utf8.h>
int ldap_x_utf8_copy (
char *dst,
const char *src);
(IN) Points to the output buffer.
(IN) Points to the UTF-8 character to copy.
Number of bytes copied.
char utstr[] = { 0xe2U, 0x98U, 0xa0U, ’a’, ’b’, ’c’, 0 };
char dest[3];
int n = ldap_x_utf8_copy(dest, utstr); /* Copies 1st char. Returns 3. */