Determines the number of characters (code points) in a multibyte character string.
Standard C Library (libc.a)
#include <stdlib.h>
size_t mbslen( MbString)
char *mbs;
The mbslen subroutine determines the number of characters (code points) in a multibyte character string. The LC_CTYPE category affects the behavior of the mbslen subroutine.
MbString | Points to a multibyte character string. |
The mbslen subroutine returns the number of multibyte characters in a multibyte character string. It returns 0 if the MbString parameter points to a null character or if a character cannot be formed from the string pointed to by this parameter.
The mblen (mblen Subroutine) subroutine, mbstowcs (mbstowcs Subroutine) subroutine, mbtowc (mbtowc Subroutine) subroutine.
Subroutines, Example Programs, and Libraries in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
National Language Support Overview and Multibyte Code and Wide Character Code Conversion Subroutines in AIX 5L Version 5.2 National Language Support Guide and Reference.