⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 langinfo.h.html

📁 unix 下的C开发手册,还用详细的例程。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>&lt;langinfo.h&gt;</title></head><body bgcolor=white><center><font size=2>The Single UNIX &reg; Specification, Version 2<br>Copyright &copy; 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_007_293">&nbsp;</a>NAME</h4><blockquote>langinfo.h - language information constants</blockquote><h4><a name = "tag_000_007_294">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;langinfo.h&gt;</code></pre></blockquote><h4><a name = "tag_000_007_295">&nbsp;</a>DESCRIPTION</h4><blockquote>The &lt;<b>langinfo.h&gt;</b>header contains the constants used to identify items of<i>langinfo</i>data (see<i><a href="nl_langinfo.html">nl_langinfo()</a></i>).The type of the constants,<b>nl_item</b>,is defined as described in<i><a href="nl_types.h.html">&lt;nl_types.h&gt;</a></i>.The following constants are defined on all XSI-conformant systems.<p>The entries under<b>Category</b>indicate in which<i><a href="setlocale.html">setlocale()</a></i>category each item is defined.<p><table  bordercolor=#000000 border=1<tr valign=top><th align=center><b>Constant</b><th align=center><b>Category</b><th align=center><b>Meaning</b><tr valign=top><td align=left>CODESET<td align=left>LC_CTYPE<td align=left>codeset name<tr valign=top><td align=left>D_T_FMT<td align=left>LC_TIME<td align=left>string for formatting date and time<tr valign=top><td align=left>D_FMT<td align=left>LC_TIME<td align=left>date format string<tr valign=top><td align=left>T_FMT<td align=left>LC_TIME<td align=left>time format string<tr valign=top><td align=left>T_FMT_AMPM<td align=left>LC_TIME<td align=left>a.m. or p.m. time format string<tr valign=top><td align=left>AM_STR<td align=left>LC_TIME<td align=left>Ante Meridian affix<tr valign=top><td align=left>PM_STR<td align=left>LC_TIME<td align=left>Post Meridian affix<tr valign=top><td align=left>DAY_1<td align=left>LC_TIME<td align=left>name of the first day of the week (for example, Sunday)<tr valign=top><td align=left>DAY_2<td align=left>LC_TIME<td align=left>name of the second day of the week (for example, Monday)<tr valign=top><td align=left>DAY_3<td align=left>LC_TIME<td align=left>name of the third day of the week (for example, Tuesday)<tr valign=top><td align=left>DAY_4<td align=left>LC_TIME<td align=left>name of the fourth day of the week (for example, Wednesday)<tr valign=top><td align=left>DAY_5<td align=left>LC_TIME<td align=left>name of the fifth day of the week (for example, Thursday)<tr valign=top><td align=left>DAY_6<td align=left>LC_TIME<td align=left>name of the sixth day of the week (for example, Friday)<tr valign=top><td align=left>DAY_7<td align=left>LC_TIME<td align=left>name of the seventh day of the week (for example, Saturday)<tr valign=top><td align=left>ABDAY_1<td align=left>LC_TIME<td align=left>abbreviated name of the first day of the week<tr valign=top><td align=left>ABDAY_2<td align=left>LC_TIME<td align=left>abbreviated name of the second day of the week<tr valign=top><td align=left>ABDAY_3<td align=left>LC_TIME<td align=left>abbreviated name of the third day of the week<tr valign=top><td align=left>ABDAY_4<td align=left>LC_TIME<td align=left>abbreviated name of the fourth day of the week<tr valign=top><td align=left>ABDAY_5<td align=left>LC_TIME<td align=left>abbreviated name of the fifth day of the week<tr valign=top><td align=left>ABDAY_6<td align=left>LC_TIME<td align=left>abbreviated name of the sixth day of the week<tr valign=top><td align=left>ABDAY_7<td align=left>LC_TIME<td align=left>abbreviated name of the seventh day of the week<tr valign=top><td align=left>MON_1<td align=left>LC_TIME<td align=left>name of the first month of the year<tr valign=top><td align=left>MON_2<td align=left>LC_TIME<td align=left>name of the second month<tr valign=top><td align=left>MON_3<td align=left>LC_TIME<td align=left>name of the third month<tr valign=top><td align=left>MON_4<td align=left>LC_TIME<td align=left>name of the fourth month<tr valign=top><td align=left>MON_5<td align=left>LC_TIME<td align=left>name of the fifth month<tr valign=top><td align=left>MON_6<td align=left>LC_TIME<td align=left>name of the sixth month<tr valign=top><td align=left>MON_7<td align=left>LC_TIME<td align=left>name of the seventh month<tr valign=top><td align=left>MON_8<td align=left>LC_TIME<td align=left>name of the eighth month<tr valign=top><td align=left>MON_9<td align=left>LC_TIME<td align=left>name of the ninth month<tr valign=top><td align=left>MON_10<td align=left>LC_TIME<td align=left>name of the tenth month<tr valign=top><td align=left>MON_11<td align=left>LC_TIME<td align=left>name of the eleventh month<tr valign=top><td align=left>MON_12<td align=left>LC_TIME<td align=left>name of the twelfth month<tr valign=top><td align=left>ABMON_1<td align=left>LC_TIME<td align=left>abbreviated name of the first month<tr valign=top><td align=left>ABMON_2<td align=left>LC_TIME<td align=left>abbreviated name of the second month<tr valign=top><td align=left>ABMON_3<td align=left>LC_TIME<td align=left>abbreviated name of the third month<tr valign=top><td align=left>ABMON_4<td align=left>LC_TIME<td align=left>abbreviated name of the fourth month<tr valign=top><td align=left>ABMON_5<td align=left>LC_TIME<td align=left>abbreviated name of the fifth month<tr valign=top><td align=left>ABMON_6<td align=left>LC_TIME<td align=left>abbreviated name of the sixth month<tr valign=top><td align=left>ABMON_7<td align=left>LC_TIME<td align=left>abbreviated name of the seventh month<tr valign=top><td align=left>ABMON_8<td align=left>LC_TIME<td align=left>abbreviated name of the eighth month<tr valign=top><td align=left>ABMON_9<td align=left>LC_TIME<td align=left>abbreviated name of the ninth month<tr valign=top><td align=left>ABMON_10<td align=left>LC_TIME<td align=left>abbreviated name of the tenth month<tr valign=top><td align=left>ABMON_11<td align=left>LC_TIME<td align=left>abbreviated name of the eleventh month<tr valign=top><td align=left>ABMON_12<td align=left>LC_TIME<td align=left>abbreviated name of the twelfth month<tr valign=top><td align=left>ERA<td align=left>LC_TIME<td align=left>era description segments<tr valign=top><td align=left>ERA_D_FMT<td align=left>LC_TIME<td align=left>era date format string<tr valign=top><td align=left>ERA_D_T_FMT<td align=left>LC_TIME<td align=left>era date and time format string<tr valign=top><td align=left>ERA_T_FMT<td align=left>LC_TIME<td align=left>era time format string<tr valign=top><td align=left>ALT_DIGITS<td align=left>LC_TIME<td align=left>alternative symbols for digits<tr valign=top><td align=left>RADIXCHAR<td align=left>LC_NUMERIC<td align=left>radix character<tr valign=top><td align=left>THOUSEP<td align=left>LC_NUMERIC<td align=left>separator for thousands<tr valign=top><td align=left>YESEXPR<td align=left>LC_MESSAGES<td align=left>affirmative response expression<tr valign=top><td align=left>NOEXPR<td align=left>LC_MESSAGES<td align=left>negative response expression<tr valign=top><td align=left>YESSTR<td align=left>LC_MESSAGES<td align=left>affirmative response for yes/no queries(<b>LEGACY</b>)<tr valign=top><td align=left>NOSTR<td align=left>LC_MESSAGES<td align=left>negative response for yes/no queries(<b>LEGACY</b>)<tr valign=top><td align=left>CRNCYSTR<td align=left>LC_MONETARY<td align=left> currency symbol, preceded by - if the symbol should appear before the value, + if the symbol should appear after the value, or . if the symbol should replace the radix character </table><p>If thelocale's value for<b>p_cs_precedes</b>and<b>n_cs_precedes</b>do not match, the value of <i>nl_langinfo</i>(CRNCYSTR) is unspecified.<p>The<i>&lt;langinfo.h&gt;</i>header declares the following as a function:<pre><code>char *<a href="nl_langinfo.html">nl_langinfo</a>(nl_item);</code></pre><p>Inclusion of the<i>&lt;langinfo.h&gt;</i>header may also make visible all symbols from<i><a href="nl_types.h.html">&lt;nl_types.h&gt;</a></i>.</blockquote><h4><a name = "tag_000_007_296">&nbsp;</a>APPLICATION USAGE</h4><blockquote>Wherever possible, users are advised to use functions compatiblewith those in the ISO&nbsp;C standard to  access items of<i>langinfo</i>data.  In particular, the<i><a href="strftime.html">strftime()</a></i>function should be used to access date and time informationdefined in category LC_TIME.The<i><a href="localeconv.html">localeconv()</a></i>function should be used to access information corresponding toRADIXCHAR, THOUSEP and CRNCYSTR.</blockquote><h4><a name = "tag_000_007_297">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_298">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="nl_langinfo.html">nl_langinfo()</a></i>,<i><a href="localeconv.html">localeconv()</a></i>,<i><a href="strfmon.html">strfmon()</a></i>,<i><a href="strftime.html">strftime()</a></i>,the <b>XBD</b> specification, <a href="../xbd/locale.html"><b>Locale</b>&nbsp;</a>.</blockquote><hr size=2 noshade><center><font size=2>UNIX &reg; is a registered Trademark of The Open Group.<br>Copyright &copy; 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -