MB_CUR_MAX(3)

MB_CUR_MAX3

Maximum length of a multibyte character in the current locale

Usage

#include <stdlib.h>

Library

Standard C library (libc)

Overview

The MB_CUR_MAX macro defines an integer expression giving the maximum number of bytes needed to represent a single wide character in the current locale. This value is locale dependent and therefore not a compile-time constant.

Return value

An integer in the range [1, MB_LEN_MAX]. The value 1 denotes traditional 8-bit encoded characters.

Releases

14 releases since Debian 2.2 (Potato); the text changed 13 times.

  1. 2.2
  2. 3.0
  3. 3.1
  4. 4.0
  5. 5.0
  6. 6.0
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. Arch

Standards

C11, POSIX.1-2024.

History

C99, POSIX.1-2001.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.