Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strndup.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strndup.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strndup.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strndup.html on line 8

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


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strndup.html on line 112

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strndup.html on line 112