OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / MB_LEN_MAX.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
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.
8 .\" %%%LICENSE_END
9 .\"
10 .\" References consulted:
11 .\"   GNU glibc-2 source code and manual
12 .\"   Dinkumware C library reference http://www.dinkumware.com/
13 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\"
15 .\" Modified, aeb, 990824
16 .\"
17 .TH MB_LEN_MAX 3 1999-07-04 "Linux" "Linux Programmer's Manual"
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
27 macro is the upper bound for the number of bytes needed to represent a single
28 wide character, across all locales.
29 .SH RETURN VALUE
30 A constant integer greater than zero.
31 .SH CONFORMING TO
32 C99, POSIX.1-2001.
33 .SH NOTES
34 The entities
35 .B MB_LEN_MAX
36 and
37 .I sizeof(wchar_t)
38 are totally unrelated.
39 In glibc,
40 .B MB_LEN_MAX
41 is typically 6 while
42 .I sizeof(wchar_t)
43 is 4.
44 .SH SEE ALSO
45 .BR MB_CUR_MAX (3)
46 .SH COLOPHON
47 This page is part of release 3.79 of the Linux
48 .I man-pages
49 project.
50 A description of the project,
51 information about reporting bugs,
52 and the latest version of this page,
53 can be found at
54 \%http://www.kernel.org/doc/man\-pages/.