1MB_LEN_MAX(3) Library Functions Manual MB_LEN_MAX(3)
2
3
4
6 MB_LEN_MAX - maximum multibyte length of a character across all locales
7
9 Standard C library (libc)
10
12 #include <limits.h>
13
15 The MB_LEN_MAX macro is the maximum number of bytes needed to represent
16 a single wide character, in any of the supported locales.
17
19 A constant integer greater than zero.
20
22 C11, POSIX.1-2008.
23
25 C99, POSIX.1-2001.
26
28 The entities MB_LEN_MAX and sizeof(wchar_t) are totally unrelated. In
29 glibc, MB_LEN_MAX is typically 16 (6 in glibc versions earlier than
30 2.2), while sizeof(wchar_t) is 4.
31
33 MB_CUR_MAX(3)
34
35
36
37Linux man-pages 6.04 2023-03-30 MB_LEN_MAX(3)