xref: /original-bsd/include/locale.h (revision 0669bf0d)
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  *	@(#)locale.h	8.1 (Berkeley) 06/02/93
8  */
9 
10 #ifndef _LOCALE_H_
11 #define _LOCALE_H_
12 
13 struct lconv {
14 	char	*decimal_point;
15 	char	*thousands_sep;
16 	char	*grouping;
17 	char	*int_curr_symbol;
18 	char	*currency_symbol;
19 	char	*mon_decimal_point;
20 	char	*mon_thousands_sep;
21 	char	*mon_grouping;
22 	char	*positive_sign;
23 	char	*negative_sign;
24 	char	int_frac_digits;
25 	char	frac_digits;
26 	char	p_cs_precedes;
27 	char	p_sep_by_space;
28 	char	n_cs_precedes;
29 	char	n_sep_by_space;
30 	char	p_sign_posn;
31 	char	n_sign_posn;
32 };
33 
34 #ifndef NULL
35 #define	NULL	0
36 #endif
37 
38 #define	LC_ALL		0
39 #define	LC_COLLATE	1
40 #define	LC_CTYPE	2
41 #define	LC_MONETARY	3
42 #define	LC_NUMERIC	4
43 #define	LC_TIME		5
44 
45 #define	_LC_LAST	6		/* marks end */
46 
47 #include <sys/cdefs.h>
48 
49 __BEGIN_DECLS
50 struct lconv	*localeconv __P((void));
51 char		*setlocale __P((int, const char *));
52 __END_DECLS
53 
54 #endif /* _LOCALE_H_ */
55