1 /* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #if defined(LIBC_SCCS) && !defined(lint) 9 static char sccsid[] = "@(#)lconv.c 8.1 (Berkeley) 06/04/93"; 10 #endif /* LIBC_SCCS and not lint */ 11 12 #include <limits.h> 13 #include <locale.h> 14 15 static char empty[] = ""; 16 17 /* 18 * Default (C) locale conversion. 19 */ 20 static struct lconv C_lconv = { 21 ".", /* decimal_point */ 22 empty, /* thousands_sep */ 23 empty, /* grouping */ 24 empty, /* int_curr_symbol */ 25 empty, /* currency_symbol */ 26 empty, /* mon_decimal_point */ 27 empty, /* mon_thousands_sep */ 28 empty, /* mon_grouping */ 29 empty, /* positive_sign */ 30 empty, /* negative_sign */ 31 CHAR_MAX, /* int_frac_digits */ 32 CHAR_MAX, /* frac_digits */ 33 CHAR_MAX, /* p_cs_precedes */ 34 CHAR_MAX, /* p_sep_by_space */ 35 CHAR_MAX, /* n_cs_precedes */ 36 CHAR_MAX, /* n_sep_by_space */ 37 CHAR_MAX, /* p_sign_posn */ 38 CHAR_MAX, /* n_sign_posn */ 39 }; 40 41 /* 42 * Current locale conversion. 43 */ 44 struct lconv *__lconv = &C_lconv; 45