MB_CUR_MAX(3)
okay so bestie, pull up a chair because MB_CUR_MAX(3) from the Library Functions Manual is here and she's iconic π. No cap, this is a libc cutie that tells you how big a multibyte character can get in your current locale. Let's get into it.
π 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. Periodt.
π₯ RETURN VALUE π₯
An integer in the range [1, MB_LEN_MAX] π. The value 1 denotes traditional 8-bit encoded characters π.
β STANDARDS β
C11, POSIX.1-2024.
π¦ HISTORY π¦
C99, POSIX.1-2001.
π SEE ALSO π
mwah π this page came from Linux man-pages 6.20, dated 2026-02-08. Stay multibyte-aware, bestie π§π
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms