1 '\" te 2 .\" Copyright (c) 2001, The IEEE and The Open Group. All Rights Reserved. Portions Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved. 3 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at 4 .\" http://www.opengroup.org/bookstore/. 5 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. 6 .\" This notice shall appear on any product containing this material. 7 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. 8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. 9 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] 10 .TH LOCALE.H 3HEAD "Sep 10, 2004" 11 .SH NAME 12 locale.h, locale \- category macros 13 .SH SYNOPSIS 14 .LP 15 .nf 16 #include <\fBlocale.h\fR> 17 .fi 18 19 .SH DESCRIPTION 20 .sp 21 .LP 22 The <\fBlocale.h\fR> header provides a definition for the \fBlconv\fR 23 structure, which includes the following members. (See the definition of 24 \fBLC_MONETARY\fR in \fBlocale\fR(5).) 25 .sp 26 .in +2 27 .nf 28 char *currency_symbol 29 char *decimal_point 30 char frac_digits 31 char *grouping 32 char *int_curr_symbol 33 char int_frac_digits 34 char int_n_cs_precedes 35 char int_n_sep_by_space 36 char int_n_sign_posn 37 char int_p_cs_precedes 38 char int_p_sep_by_space 39 char int_p_sign_posn 40 char *mon_decimal_point 41 char *mon_grouping 42 char *mon_thousands_sep 43 char *negative_sign 44 char n_cs_precedes 45 char n_sep_by_space 46 char n_sign_posn 47 char *positive_sign 48 char p_cs_precedes 49 char p_sep_by_space 50 char p_sign_posn 51 char *thousands_sep 52 .fi 53 .in -2 54 55 .sp 56 .LP 57 The <\fBlocale.h\fR> header defines \fINULL\fR (as defined in <\fBstddef.h\fR>) 58 and the following as macros: 59 .sp 60 .in +2 61 .nf 62 LC_ALL 63 LC_COLLATE 64 LC_CTYPE 65 LC_MESSAGES 66 LC_MONETARY 67 LC_NUMERIC 68 LC_TIME 69 .fi 70 .in -2 71 72 .sp 73 .LP 74 The preceding expand to distinct integer constant expressions, for use as the 75 first argument to the \fBsetlocale()\fR function. See \fBsetlocale\fR(3C). 76 .sp 77 .LP 78 Additional macro definitions, beginning with the characters \fBLC_\fR and an 79 uppercase letter, can also be specified here. 80 .SH ATTRIBUTES 81 .sp 82 .LP 83 See \fBattributes\fR(5) for descriptions of the following attributes: 84 .sp 85 86 .sp 87 .TS 88 box; 89 c | c 90 l | l . 91 ATTRIBUTE TYPE ATTRIBUTE VALUE 92 _ 93 Interface Stability Standard 94 .TE 95 96 .SH SEE ALSO 97 .sp 98 .LP 99 \fBsetlocale\fR(3C), \fBlocaleconv\fR(3C), \fBstddef.h\fR(3HEAD), 100 \fBattributes\fR(5), \fBlocale\fR(5), \fBstandards\fR(5)