1MB_LEN_MAX(3)              Library Functions Manual              MB_LEN_MAX(3)
2
3
4

NAME

6       MB_LEN_MAX - maximum multibyte length of a character across all locales
7

LIBRARY

9       Standard C library (libc)
10

SYNOPSIS

12       #include <limits.h>
13

DESCRIPTION

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

RETURN VALUE

19       A constant integer greater than zero.
20

STANDARDS

22       C11, POSIX.1-2008.
23

HISTORY

25       C99, POSIX.1-2001.
26

NOTES

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

SEE ALSO

33       MB_CUR_MAX(3)
34
35
36
37Linux man-pages 6.04              2023-03-30                     MB_LEN_MAX(3)
Impressum