📄 mbsinit.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>mbsinit</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_538"> </a>NAME</h4><blockquote>mbsinit - determine conversion object status</blockquote><h4><a name = "tag_000_007_539"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="wchar.h.html">wchar.h</a>>int mbsinit(const mbstate_t *<i>ps</i>);</code></pre></blockquote><h4><a name = "tag_000_007_540"> </a>DESCRIPTION</h4><blockquote>If<i>ps</i>is not a null pointer, the<i>mbsinit()</i>function determines whether the object pointed to by<i>ps</i>describes an initial conversion state.</blockquote><h4><a name = "tag_000_007_541"> </a>RETURN VALUE</h4><blockquote>The<i>mbsinit()</i>function returns non-zero if <i>ps</i>is a null pointer, or if the pointed-to object describes an initialconversion state; otherwise, it returns zero.<p>If an<b>mbstate_t</b>object is altered by any of the functions described as "restartable",and is then used with a different character sequence, or inthe other conversion direction, or with a different LC_CTYPE categorysetting than on earlier function calls, the behaviour is undefined.</blockquote><h4><a name = "tag_000_007_542"> </a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_000_007_543"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_544"> </a>APPLICATION USAGE</h4><blockquote>The<b>mbstate_t</b>object is used to describe the current conversion state from aparticular character sequence to a wide-character sequence (or viceversa) under the rules of a particular setting of the LC_CTYPEcategory of the current locale.<p>The initial conversion state corresponds, for a conversion in eitherdirection, to the beginning of a new character sequence in theinitial shift state. A zero valued<b>mbstate_t</b>object is at least one way to describe an initial conversion state. Azero valued<b>mbstate_t</b>object can be used to initiate conversion involving any charactersequence, in any LC_CTYPE category setting. </blockquote><h4><a name = "tag_000_007_545"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_546"> </a>SEE ALSO</h4><blockquote><i><a href="mbrlen.html">mbrlen()</a></i>,<i><a href="mbrtowc.html">mbrtowc()</a></i>,<i><a href="wcrtomb.html">wcrtomb()</a></i>,<i><a href="mbsrtowcs.html">mbsrtowcs()</a></i>,<i><a href="wcsrtombs.html">wcsrtombs()</a></i>,<i><a href="wchar.h.html"><wchar.h></a></i>.</blockquote><h4>DERIVATION</h4><blockquote>Derived from the ISO/IEC 9899:1990/Amendment 1:1995 (E).</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 + -