Next: , Previous: , Up: Characters   [Contents][Index]

16.2.4 The mbchar_t type

Gnulib defines an alternate way to encode a multibyte character: mbchar_t. Its main feature is the ability to process a string or stream with some malformed characters without reporting an error.

The type mbchar_t, defined in "mbchar.h", holds a character in both the multibyte and the 32-bit wide character representation. In case of a malformed character only the multibyte representation is used.