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

mbstrlen()

Find the length of a multibyte character string

Synopsis:

#include <photon/PhProto.h>

int mbstrlen( char const *text, 
              int char_width,
              int *bytes );

Description:

The mbstrlen() function returns the number of multibyte characters in the string text, and sets bytes to the number of bytes in text.

The char_width must be set to the maximum number of bytes used to represent a single character. Setting char_width to 0 will use the maximum character width.

Returns:

The number of multibyte characters in the string.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

mbstrblen(), mbstrnlen()


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