System Grab Bag

View all man pages from Linux (or from all projects)

Name

MB_CUR_MAX - maximum length of a multibyte character in the current locale

Library

Standard C library ( libc )

Synopsis

#include <stdlib.h> 

Description

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.

Standards

C11, POSIX.1-2008.

History

C99, POSIX.1-2001.

See Also

  1. MB_LEN_MAX(3),
  2. mblen(3),
  3. mbstowcs(3),
  4. mbtowc(3),
  5. wcstombs(3),
  6. wctomb(3)