]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
89e3ffe9 | 3 | .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) |
fea681da MK |
4 | .\" This is free documentation; you can redistribute it and/or |
5 | .\" modify it under the terms of the GNU General Public License as | |
6 | .\" published by the Free Software Foundation; either version 2 of | |
7 | .\" the License, or (at your option) any later version. | |
fe382ebf | 8 | .\" %%%LICENSE_END |
fea681da MK |
9 | .\" |
10 | .\" References consulted: | |
11 | .\" GNU glibc-2 source code and manual | |
12 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 13 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
14 | .\" |
15 | .\" Modified, aeb, 990824 | |
16 | .\" | |
5722c835 | 17 | .TH MB_LEN_MAX 3 2015-07-23 "Linux" "Linux Programmer's Manual" |
fea681da MK |
18 | .SH NAME |
19 | MB_LEN_MAX \- maximum multibyte length of a character across all locales | |
20 | .SH SYNOPSIS | |
21 | .nf | |
22 | .B #include <limits.h> | |
23 | .fi | |
24 | .SH DESCRIPTION | |
25 | The | |
26 | .B MB_LEN_MAX | |
4d53aa00 | 27 | macro is the maximum number of bytes needed to represent a single |
302a5d70 | 28 | wide character, in any of the supported locales. |
47297adb | 29 | .SH RETURN VALUE |
74aace8a | 30 | A constant integer greater than zero. |
47297adb | 31 | .SH CONFORMING TO |
81b5e48a | 32 | POSIX.1-2001, POSIX.1-2008, C99. |
fea681da MK |
33 | .SH NOTES |
34 | The entities | |
35 | .B MB_LEN_MAX | |
36 | and | |
e5056894 | 37 | .I sizeof(wchar_t) |
c13182ef | 38 | are totally unrelated. |
5260fe08 | 39 | In glibc, |
fea681da | 40 | .B MB_LEN_MAX |
79ae0b1f MK |
41 | is typically 16 |
42 | .\" For an explanation of why the limit was raised to 16, see | |
43 | .\" http://lists.gnu.org/archive/html/bug-gnulib/2015-05/msg00001.html | |
44 | .\" From: Bruno Haible | |
45 | .\" Subject: Re: why is MB_LEN_MAX so large (16) on glibc | |
46 | .\" Date: Thu, 14 May 2015 02:30:14 +0200 | |
2a2ecb87 | 47 | (6 in glibc versions earlier than 2.2), while |
e5056894 | 48 | .I sizeof(wchar_t) |
fea681da | 49 | is 4. |
47297adb | 50 | .SH SEE ALSO |
fea681da | 51 | .BR MB_CUR_MAX (3) |