ins_nwstr.html
来自「unix 下的C开发手册,还用详细的例程。」· HTML 代码 · 共 79 行
HTML
79 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>ins_nwstr</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_002_001_521"> </a>NAME</h4><blockquote>ins_nwstr, ins_wstr, mvins_nwstr, mvins_wstr, mvwins_nwstr, mvwins_wstr,wins_nwstr, wins_wstr - insert a wide-character string into a window</blockquote><h4><a name = "tag_002_001_522"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="curses.h.html">curses.h</a>>int ins_nwstr(const wchar_t *<i>wstr</i>, int <i>n</i>);int ins_wstr(const wchar_t *<i>wstr</i>);int mvins_nwstr(int <i>y</i>, int <i>x</i>, const wchar_t *<i>wstr</i>, int <i>n</i>);int mvins_wstr(int <i>y</i>, int <i>x</i>, const wchar_t *<i>wstr</i>);int mvwins_nwstr(WINDOW *<i>win</i>, int <i>y</i>, int <i>x</i>, const wchar_t *<i>wstr</i>, int <i>n</i>);int mvwins_wstr(WINDOW *<i>win</i>, int <i>y</i>, int <i>x</i>, const wchar_t *<i>wstr</i>);int wins_nwstr(WINDOW *<i>win</i>, const wchar_t *<i>wstr</i>, int <i>n</i>);int wins_wstr(WINDOW *<i>win</i>, const wchar_t *<i>wstr</i>);</code></pre></blockquote><h4><a name = "tag_002_001_523"> </a>DESCRIPTION</h4><blockquote>These functions insert a<b>wchar_t</b>character string (as many<b>wchar_t</b>characters as will fit on the line) in the current or specified windowimmediately before the current or specified position.<p>Any non-spacing characters in the string are associated with the first spacingcharacter in the string that precedes the non-spacing characters. If thefirst character in the string is a non-spacing character, these functions willfail.<p>These functions do not perform wrapping.These functions do not advance the cursor position.These functions perform special-character processing.<p>The<i>ins_nwstr()</i>,<i>mvins_nwstr()</i>,<i>mvwins_nwstr()</i>and<i>wins_nwstr()</i>functions insert at most <i>n</i> <b>wchar_t</b> characters. If <i>n</i> is lessthan 1, then the entire string is inserted.</blockquote><h4><a name = "tag_002_001_524"> </a>RETURN VALUE</h4><blockquote>Upon successful completion, these functions return OK.Otherwise, they return ERR.</blockquote><h4><a name = "tag_002_001_525"> </a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_002_001_526"> </a>SEE ALSO</h4><blockquote><i><a href="curses.h.html"><curses.h></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 + =
减小字号Ctrl + -
显示快捷键?