📄 nl_types.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title><nl_types.h></title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="<nl_types.h>"></a> <a name="tag_13_34"></a><!-- <nl_types.h> --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright © 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_13_34_01"></a>NAME</h4><blockquote>nl_types.h - data types</blockquote><h4><a name="tag_13_34_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><div class="box"><tt><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> #include <nl_types.h> <img src="../images/opt-end.gif" alt="[Option End]" border="0"></tt></div></blockquote><h4><a name="tag_13_34_03"></a>DESCRIPTION</h4><blockquote><p>The <i><nl_types.h></i> header shall contain definitions of at least the following types:</p><dl compact><dt><b>nl_catd</b></dt><dd>Used by the message catalog functions <a href="../functions/catopen.html"><i>catopen</i>()</a>, <a href="../functions/catgets.html"><i>catgets</i>()</a>, and <a href="../functions/catclose.html"><i>catclose</i>()</a> to identify acatalog descriptor.</dd><dt><b>nl_item</b></dt><dd>Used by <a href="../functions/nl_langinfo.html"><i>nl_langinfo</i>()</a> to identify items of <i>langinfo</i> data. Values ofobjects of type <b>nl_item</b> are defined in <a href="langinfo.h.html"><i><langinfo.h></i></a> .</dd></dl><p>The <i><nl_types.h></i> header shall contain definitions of at least the following constants:</p><dl compact><dt>NL_SETD</dt><dd>Used by <i>gencat</i> when no $<i>set</i> directive is specified in a message text source file; see the InternationalizationGuide. This constant can be passed as the value of <i>set_id</i> on subsequent calls to <a href="../functions/catgets.html"><i>catgets</i>()</a> (that is, to retrieve messages from the default message set). The value of NL_SETDis implementation-defined.</dd><dt>NL_CAT_LOCALE</dt><dd>Value that must be passed as the <i>oflag</i> argument to <a href="../functions/catopen.html"><i>catopen</i>()</a> to ensurethat message catalog selection depends on the <i>LC_MESSAGES</i> locale category, rather than directly on the <i>LANG</i>environment variable.</dd></dl><p>The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.</p><pre><tt>int catclose(nl_catd);char *catgets(nl_catd, int, int, const char *);nl_catd catopen(const char *, int);</tt></pre></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_34_04"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_34_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_34_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_34_07"></a>SEE ALSO</h4><blockquote><p><a href="langinfo.h.html"><i><langinfo.h></i></a> , the System Interfaces volume of IEEE Std 1003.1-2001, <ahref="../functions/catclose.html"><i>catclose</i>()</a>, <a href="../functions/catgets.html"><i>catgets</i>()</a>, <a href="../functions/catopen.html"><i>catopen</i>()</a>, <a href="../functions/nl_langinfo.html"><i>nl_langinfo</i>()</a>, the Shell andUtilities volume of IEEE Std 1003.1-2001, <a href="../utilities/gencat.html"><i>gencat</i></a></p></blockquote><h4><a name="tag_13_34_08"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 2.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -