| 1 |
.\" Copyright, Bruno Haible <[email protected]> |
| 2 |
.\" Copyright, the authors of the Linux man-pages project |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: GPL-2.0-or-later |
| 5 |
.\" |
| 6 |
.TH MB_CUR_MAX 3 2026-02-08 "Linux man-pages 6.18" |
| 7 |
.SH NAME |
| 8 |
MB_CUR_MAX \- maximum length of a multibyte character in the current locale |
| 9 |
.SH LIBRARY |
| 10 |
Standard C library |
| 11 |
.RI ( libc ) |
| 12 |
.SH SYNOPSIS |
| 13 |
.nf |
| 14 |
.B #include <stdlib.h> |
| 15 |
.fi |
| 16 |
.SH DESCRIPTION |
| 17 |
The |
| 18 |
.B MB_CUR_MAX |
| 19 |
macro defines an integer expression giving |
| 20 |
the maximum number of bytes needed to represent a single |
| 21 |
wide character in the current locale. |
| 22 |
This value is locale dependent and therefore not a compile-time constant. |
| 23 |
.SH RETURN VALUE |
| 24 |
An integer in the range [1, |
| 25 |
.BR MB_LEN_MAX ]. |
| 26 |
The value 1 denotes traditional 8-bit encoded characters. |
| 27 |
.SH STANDARDS |
| 28 |
C11, POSIX.1-2024. |
| 29 |
.SH HISTORY |
| 30 |
C99, POSIX.1-2001. |
| 31 |
.SH SEE ALSO |
| 32 |
.BR MB_LEN_MAX (3), |
| 33 |
.BR mblen (3), |
| 34 |
.BR mbstowcs (3), |
| 35 |
.BR mbtowc (3), |
| 36 |
.BR wcstombs (3), |
| 37 |
.BR wctomb (3) |