QNX Developer Support
Create a copy of part of a UTF-8 character string
char *utf8strndup( char const *text, int count, int *bytes );
- The UTF-8 character string to be copied.
- The number of character to copy from the string.
- A pointer to a location where utf8strndup() stores the number of bytes in the copy of the string.
The utf8strndup() function creates a copy of the first count characters of the given UTF-8 character string, text. It sets bytes to the number of bytes in the resulting string, not including the terminating \0.
A pointer to the new string.
Unicode Multilingual Support in the Photon Programmer's Guide