Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
utf8strndup

utf8strndup

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

utf8strndup()

Create a copy of part of a UTF-8 character string

Synopsis:

char *utf8strndup( char const *text, 
                   int count, 
                   int *bytes );

Arguments:

text
The UTF-8 character string to be copied.
count
The number of character to copy from the string.
bytes
A pointer to a location where utf8strndup() stores the number of bytes in the copy of the string.

Library:

ph

Description:

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.

Returns:

A pointer to the new string.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

Unicode Multilingual Support in the Photon Programmer's Guide