'\" te .\" Copyright 1989 AT&T. Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved. .\" 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. .\" 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. .\" 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] .TH langinfo.h 3HEAD "30 Aug 2002" "SunOS 5.11" "Headers" .SH NAME langinfo.h, langinfo \- language information constants .SH SYNOPSIS .LP .nf #include .fi .SH DESCRIPTION .sp .LP The <\fBlanginfo.h\fR> header contains the constants used to identify items of \fBlanginfo\fR data (see \fBnl_langinfo\fR(3C)). The type of the constant, \fBnl_item\fR, is defined as described in <\fBnl_types.h\fR>. .sp .LP The following constants are defined. The entries under Category indicate in which \fBsetlocale\fR(3C) category each item is defined. .sp .sp .TS tab(); cw(1.42i) |cw(1.42i) |cw(2.66i) lw(1.42i) |lw(1.42i) |lw(2.66i) . ConstantCategoryMeaning _ \fBCODESET\fR\fBLC_CTYPE\fRcodeset name _ \fBD_T_FMT\fR\fBLC_TIME\fRstring for formatting date and time _ \fBD_FMT\fR\fBLC_TIME\fRdate format string _ \fBT_FMT\fR\fBLC_TIME\fRtime format string _ \fBT_FMT_AMPM\fR\fBLC_TIME\fRa.m. or p.m. time format string _ \fBAM_STR\fR\fBLC_TIME\fRante-meridiem affix _ \fBPM_STR\fR\fBLC_TIME\fRpost-meridiem affix _ \fBDAY_1\fR\fBLC_TIME\fRT{ name of the first day of the week (for example, Sunday) T} _ \fBDAY_2\fR\fBLC_TIME\fRT{ name of the second day of the week (for example, Monday) T} _ \fBDAY_3\fR\fBLC_TIME\fRT{ name of the third day of the week (for example, Tuesday) T} _ \fBDAY_4\fR\fBLC_TIME\fRT{ name of the fourth day of the week (for example, Wednesday) T} _ \fBDAY_5\fR\fBLC_TIME\fRT{ name of the fifth day of the week (for example, Thursday) T} _ \fBDAY_6\fR\fBLC_TIME\fRT{ name of the sixth day of the week (for example, Friday) T} _ \fBDAY_7\fR\fBLC_TIME\fRT{ name of the seventh day of the week (for example, Saturday) T} _ \fBABDAY_1\fR\fBLC_TIME\fRT{ abbreviated name of the first day of the week T} _ \fBABDAY_2\fR\fBLC_TIME\fRT{ abbreviated name of the second day of the week T} _ \fBABDAY_3\fR\fBLC_TIME\fRT{ abbreviated name of the third day of the week T} _ \fBABDAY_4\fR\fBLC_TIME\fRT{ abbreviated name of the fourth day of the week T} _ \fBABDAY_5\fR\fBLC_TIME\fRT{ abbreviated name of the fifth day of the week T} _ \fBABDAY_6\fR\fBLC_TIME\fRT{ abbreviated name of the seventh day of the week T} _ \fBABDAY_7\fR\fBLC_TIME\fRT{ abbreviated name of the seventh day of the week T} _ \fBMON_1\fR\fBLC_TIME\fRname of the first month of the year _ \fBMON_2\fR\fBLC_TIME\fRname of the second month _ \fBMON_3\fR\fBLC_TIME\fRname of the third month _ \fBMON_4\fR\fBLC_TIME\fRname of the fourth month _ \fBMON_5\fR\fBLC_TIME\fRname of the fifth month _ \fBMON_6\fR\fBLC_TIME\fRname of the sixth month _ \fBMON_7\fR\fBLC_TIME\fRname of the seventh month _ \fBMON_8\fR\fBLC_TIME\fRname of the eighth month _ \fBMON_9\fR\fBLC_TIME\fRname of the ninth month _ \fBMON_10\fR\fBLC_TIME\fRname of the tenth month _ \fBMON_11\fR\fBLC_TIME\fRname of the eleventh month _ \fBMON_12\fR\fBLC_TIME\fRname of the twelfth month _ \fBABMON_1\fR\fBLC_TIME\fRabbreviated name of the first month _ \fBABMON_2\fR\fBLC_TIME\fRabbreviated name of the second month _ \fBABMON_3\fR\fBLC_TIME\fRabbreviated name of the third month _ \fBABMON_4\fR\fBLC_TIME\fRabbreviated name of the fourth month _ \fBABMON_5\fR\fBLC_TIME\fRabbreviated name of the fifth month _ \fBABMON_6\fR\fBLC_TIME\fRabbreviated name of the sixth month _ \fBABMON_7\fR\fBLC_TIME\fRabbreviated name of the seventh month _ \fBABMON_8\fR\fBLC_TIME\fRabbreviated name of the eighth month _ \fBABMON_9\fR\fBLC_TIME\fRabbreviated name of the ninth month _ \fBABMON_10\fR\fBLC_TIME\fRabbreviated name of the tenth month _ \fBABMON_11\fR\fBLC_TIME\fRabbreviated name of the eleventh month _ \fBABMON_12\fR\fB LC_TIME\fRabbreviated name of the twelfth month _ \fBERA\fR\fBLC_TIME\fRera description segments _ \fBERA_D_FMT\fR\fBLC_TIME\fRera date format string _ \fBERA_D_T_FMT\fR\fBLC_TIME\fRera date and time format string _ \fBERA_T_FMT\fR\fBLC_TIME\fRera time format string _ \fBALT_DIGITS\fR\fBLC_TIME\fRalternative symbols for digits _ \fBRADIXCHAR\fR\fBLC_NUMERIC\fRradix character _ \fBTHOUSEP\fR\fBLC_NUMERIC\fRseparator for thousands _ \fBYESEXPR\fR\fBLC_MESSAGES\fRaffirmative response expression _ \fBNOEXPR\fR\fBLC_MESSAGES\fRnegative response expression _ \fBYESSTR\fR\fBLC_MESSAGES\fRaffirmative response for yes/no queries _ \fBNOSTR\fR\fBLC_MESSAGES\fRnegative response ro yes/no queries _ \fBCRNCYSTR\fR\fBLC_MONETARY\fRT{ local currency symbol, preceded by '-' if the symbol sould appear before the value, '+' if the symbol should appear after the value, or '.' if the symbol should replace the radix character T} .TE .sp .LP If the locale's values for \fBp_cs_precedes\fR and \fBn_cs_precedes\fR do not match, the value of \fBnl_langinfo(CRNCYSTR)\fR is unspecified. .sp .LP The <\fBlanginfo.h\fR> header declares the following as a function: .sp .in +2 .nf char *nl_langinfo(nl_item); .fi .in -2 .sp .LP Inclusion of <\fBlanginfo.h\fR> header may also make visible all symbols from <\fBnl_types.h\fR>. .SH USAGE .sp .LP Wherever possible, users are advised to use functions compatible with those in the ISO C standard to access items of \fBlanginfo\fR data. In particular, the \fBstrftime\fR(3C) function should be used to access date and time information defined in category \fBLC_TIME\fR. The \fBlocaleconv\fR(3C) function should be used to access information corresponding to \fBRADIXCHAR\fR, \fBTHOUSEP\fR, and \fBCRNCYSTR\fR. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityStandard .TE .SH SEE ALSO .sp .LP \fBmkmsgs\fR(1), \fBlocaleconv\fR(3C), \fBnl_langinfo\fR(3C), \fBnl_types.h\fR(3HEAD), \fBsetlocale\fR(3C), \fBstrftime\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)