Back to index

glibc  2.9
Functions
broken_cur_max.c File Reference
#include <langinfo.h>
#include <locale.h>
#include <stdlib.h>
#include "localeinfo.h"

Go to the source code of this file.

Functions

size_t __ctype_get_mb_cur_max (void)

Function Documentation

Definition at line 45 of file broken_cur_max.c.

{
  union locale_data_value u;

  u.string = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
  return ((size_t []) { 1, 1, 1, 2, 2, 3, 4 })[u.word];
}