📄 t_strerror.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>t_strerror</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>NAME</h4><blockquote>t_strerror - produce an error message string</blockquote><h4>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="xti.h.html">xti.h</a>>const char *t_strerror( int errnum)</code></pre></blockquote><h4>DESCRIPTION</h4><blockquote><pre><P><table bordercolor=#000000 border=1 align=center><tr valign=top><th align=center><b>Parameters</b><th align=center><b>Before call</b><th align=center><b>After call</b><tr valign=top><td align=left>errnum<td align=center>x<td align=center>/</table></pre><p>The<i>t_strerror()</i>function maps the error number in<I>errnum</I>that corresponds to an XTI error to a language-dependent error messagestring and returns a pointer to the string. The string pointed to will notbe modified by the program, but may be overwritten by a subsequentcall to the<I>t_strerror</I>function. The string is not terminated by anewline character. The language for error message strings written by<i>t_strerror()</i>is that of the current locale. If it is English,the error message string describing the value in<I>t_errno</I>may be derived from the comments following the<I>t_errno</I>codes defined in <B><xti.h></B>. If anerror code is unknown, and the language is English,<i>t_strerror()</i>returns the string:<pre><code>"<error>: error unknown"</code></pre><p>where <error> is the error number supplied as input. In otherlanguages, an equivalent text is provided.</blockquote><h4>VALID STATES</h4><blockquote>ALL - apart from T_UNINIT</blockquote><h4>RETURN VALUE</h4><blockquote>The function<i>t_strerror()</i>returns a pointer to the generated message string.</blockquote><h4>SEE ALSO</h4><blockquote><i><a href="t_error.html">t_error()</a></i></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 + -