📄 locale.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title><locale.h></title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_007_375"> </a>NAME</h4><blockquote>locale.h - category macros</blockquote><h4><a name = "tag_000_007_376"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <locale.h></code></pre></blockquote><h4><a name = "tag_000_007_377"> </a>DESCRIPTION</h4><blockquote>The<i><locale.h></i>header provides a definition for structure <b>lconv</b>, whichincludes at least the following members.(See the definitions of LC_MONETARY in the <b>XBD</b> specification, <a href="../xbd/locale.html#tag_005_003_003"><b>LC_MONETARY</b> </a>, and the <b>XBD</b> specification, <a href="../xbd/locale.html#tag_005_003_004"><b>LC_NUMERIC</b> </a>.)<pre><code>char *currency_symbolchar *decimal_pointchar frac_digitschar *groupingchar *int_curr_symbolchar int_frac_digitschar *mon_decimal_pointchar *mon_groupingchar *mon_thousands_sepchar *negative_signchar n_cs_precedeschar n_sep_by_spacechar n_sign_posnchar *positive_signchar p_cs_precedeschar p_sep_by_spacechar p_sign_posnchar *thousands_sep</code></pre><p>The<i><locale.h></i>header defines NULL (as defined in<i><a href="stddef.h.html"><stddef.h></a></i>)and at least the following as macros:<pre>LC_ALLLC_COLLATELC_CTYPELC_MESSAGESLC_MONETARYLC_NUMERICLC_TIME</pre><p>which expand to distinct integral-constantexpressions, for use as the first argument to the<i><a href="setlocale.html">setlocale()</a></i>function.<p>Additional macro definitions, beginning with the charactersLC_ and an upper-case letter, may also be given here.<p>The following are declared as functions and may also be definedas macros.Function prototypes must be provided for use with an ISO Ccompiler.<pre><code>struct lconv *<a href="localeconv.html">localeconv</a>(void);char <a href="setlocale.html">setlocale</a>(int, const char *);</code></pre></blockquote><h4><a name = "tag_000_007_378"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_379"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_380"> </a>SEE ALSO</h4><blockquote><i><a href="localeconv.html">localeconv()</a></i>,<i><a href="setlocale.html">setlocale()</a></i>,the <b>XBD</b> specification, <a href="../xbd/envvar.html"><b>Environment Variables</b> </a>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 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 + -