xref: /netbsd-src/lib/libc/locale/__mb_cur_max.c (revision ace5b9b5feb0e7608bd2da7a617428d2e1cf8aa3)
1*ace5b9b5Schristos /*	$NetBSD: __mb_cur_max.c,v 1.3 2024/01/20 14:52:47 christos Exp $	*/
2f972083eSitojun 
3f972083eSitojun /*-
4f972083eSitojun  * Copyright (c)1999 Citrus Project,
5f972083eSitojun  * All rights reserved.
6f972083eSitojun  *
7f972083eSitojun  * Redistribution and use in source and binary forms, with or without
8f972083eSitojun  * modification, are permitted provided that the following conditions
9f972083eSitojun  * are met:
10f972083eSitojun  * 1. Redistributions of source code must retain the above copyright
11f972083eSitojun  *    notice, this list of conditions and the following disclaimer.
12f972083eSitojun  * 2. Redistributions in binary form must reproduce the above copyright
13f972083eSitojun  *    notice, this list of conditions and the following disclaimer in the
14f972083eSitojun  *    documentation and/or other materials provided with the distribution.
15f972083eSitojun  *
16f972083eSitojun  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17f972083eSitojun  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18f972083eSitojun  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19f972083eSitojun  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20f972083eSitojun  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21f972083eSitojun  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22f972083eSitojun  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23f972083eSitojun  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24f972083eSitojun  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25f972083eSitojun  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26f972083eSitojun  * SUCH DAMAGE.
27f972083eSitojun  */
28f972083eSitojun 
29f972083eSitojun #include <sys/cdefs.h>
30f972083eSitojun #if defined(LIBC_SCCS) && !defined(lint)
31*ace5b9b5Schristos __RCSID("$NetBSD: __mb_cur_max.c,v 1.3 2024/01/20 14:52:47 christos Exp $");
32f972083eSitojun #endif /* LIBC_SCCS and not lint */
33f972083eSitojun 
34f972083eSitojun #include <sys/types.h>
351aba0c48Sitojun #include <limits.h>
36*ace5b9b5Schristos #include <stdlib.h>
37*ace5b9b5Schristos #include "setlocale_local.h"
38f972083eSitojun 
39f972083eSitojun size_t __mb_cur_max = 1;
401aba0c48Sitojun size_t __mb_len_max_runtime = MB_LEN_MAX;
411aba0c48Sitojun 
42