3.5 Locale Macros

The two ANSI macros, MB_LEN_MAX and MB_CUR_MAX, are useful when writing portable programs for international markets. The following list describes them and gives the include file where each is defined.

Macro Description

MB_CUR_MAX The MB_CUR_MAX macro, defined in STDLIB.H, expands to the maximum number of bytes in a multibyte character of the current locale.
MB_LEN_MAX The MB_LEN_MAX macro, defined in LIMITS.H, gives the maximum number of bytes in a multibyte character.