Extracts a multibyte character from a multibyte character string.
Standard C Library (libc.a)
#include <mbstr.h>
mbchar_t mbstomb ( MbString)
const char *MbString;
The mbstomb subroutine extracts the multibyte character pointed to by the MbString parameter from the multibyte character string. The LC_CTYPE category affects the behavior of the mbstomb subroutine.
Item | Description |
---|---|
MbString | Contains a multibyte character string. |
The mbstomb subroutine returns the code point of the multibyte character as a mbchar_t data type. If an unusable multibyte character is encountered, a value of 0 is returned.