Debian Codegraph @

upstream/debian-trixie/man3/MB_CUR_MAX.3

raw
1 .\" Copyright (c) Bruno Haible <[email protected]>
2 .\"
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
4 .\"
5 .\" References consulted:
6 .\" GNU glibc-2 source code and manual
7 .\" Dinkumware C library reference http://www.dinkumware.com/
8 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
9 .\"
10 .\" Modified, aeb, 990824
11 .\"
12 .TH MB_CUR_MAX 3 2024-05-02 "Linux man-pages 6.9.1"
13 .SH NAME
14 MB_CUR_MAX \- maximum length of a multibyte character in the current locale
15 .SH LIBRARY
16 Standard C library
17 .RI ( libc )
18 .SH SYNOPSIS
19 .nf
20 .B #include <stdlib.h>
21 .fi
22 .SH DESCRIPTION
23 The
24 .B MB_CUR_MAX
25 macro defines an integer expression giving
26 the maximum number of bytes needed to represent a single
27 wide character in the current locale.
28 This value is locale dependent and therefore not a compile-time constant.
29 .SH RETURN VALUE
30 An integer in the range [1,
31 .BR MB_LEN_MAX ].
32 The value 1 denotes traditional 8-bit encoded characters.
33 .SH STANDARDS
34 C11, POSIX.1-2008.
35 .SH HISTORY
36 C99, POSIX.1-2001.
37 .SH SEE ALSO
38 .BR MB_LEN_MAX (3),
39 .BR mblen (3),
40 .BR mbstowcs (3),
41 .BR mbtowc (3),
42 .BR wcstombs (3),
43 .BR wctomb (3)