[Previous] [Contents] [Index] [Next]

mbstrndup()

Create a copy of part of a multibyte-character string

Synopsis:

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

Library:

ph

Description:

The mbstrndup() function creates a copy of the first count characters of the given multibyte-character string, text. It sets bytes to the number of bytes in 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


[Previous] [Contents] [Index] [Next]