]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/MB_LEN_MAX.3
encrypt.3: srcfix: rewrap source lines
[thirdparty/man-pages.git] / man3 / MB_LEN_MAX.3
CommitLineData
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
19MB_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
25The
26.B MB_LEN_MAX
4d53aa00 27macro is the maximum number of bytes needed to represent a single
302a5d70 28wide character, in any of the supported locales.
47297adb 29.SH RETURN VALUE
74aace8a 30A constant integer greater than zero.
47297adb 31.SH CONFORMING TO
81b5e48a 32POSIX.1-2001, POSIX.1-2008, C99.
fea681da
MK
33.SH NOTES
34The entities
35.B MB_LEN_MAX
36and
e5056894 37.I sizeof(wchar_t)
c13182ef 38are totally unrelated.
5260fe08 39In glibc,
fea681da 40.B MB_LEN_MAX
79ae0b1f
MK
41is 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 49is 4.
47297adb 50.SH SEE ALSO
fea681da 51.BR MB_CUR_MAX (3)