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