📄 mvinchstr.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>inchnstr</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_487"> </a>NAME</h4><blockquote>inchnstr, inchstr, mvinchnstr, mvinchstr,mvwinchnstr, mvwinchstr, winchnstr, winchstr- input an array of single-byte characters and renditions from a window</blockquote><h4><a name = "tag_002_001_488"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="curses.h.html">curses.h</a>>int inchnstr(chtype *<i>chstr</i>, int <i>n</i>);int inchstr(chtype *<i>chstr</i>);int mvinchnstr(int <i>y</i>, int <i>x</i>, chtype *<i>chstr</i>, int <i>n</i>);int mvinchstr(int <i>y</i>, int <i>x</i>, chtype *<i>chstr</i>);int mvwinchnstr(WINDOW *<i>win</i>, int <i>y</i>, int <i>x</i>, chtype *<i>chstr</i>, int <i>n</i>);int mvwinchstr(WINDOW *<i>win</i>, int <i>y</i>, int <i>x</i>, chtype *<i>chstr</i>);int winchnstr(WINDOW *<i>win</i>, chtype *<i>chstr</i>, int <i>n</i>);int winchstr(WINDOW *<i>win</i>, chtype *<i>chstr</i>);</code></pre></blockquote><h4><a name = "tag_002_001_489"> </a>DESCRIPTION</h4><blockquote>These functions place characters and renditions from the current or specifiedwindow into the array pointed to by <i>chstr</i>, starting at the current orspecified position and ending at the end of the line.<p>The<i>inchnstr()</i>,<i>mvinchnstr()</i>,<i>mvwinchnstr()</i>and<i>winchnstr()</i>functions store at most <i>n</i> elements from the current or specified windowinto the array pointed to by <i>chstr</i>.</blockquote><h4><a name = "tag_002_001_490"> </a>RETURN VALUE</h4><blockquote>Upon successful completion, these functions return OK.Otherwise, they return ERR.</blockquote><h4><a name = "tag_002_001_491"> </a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_002_001_492"> </a>APPLICATION USAGE</h4><blockquote>Reading a line that overflows the array pointed to by <i>chstr</i> with<i>inchstr()</i>,<i>mvinchstr()</i>,<i>mvwinchstr()</i>or<i>winchstr()</i>causes undefined results. The use of<i>inchnstr()</i>,<i>mvinchnstr()</i>,<i>mvwinchnstr()</i>or<i>winchnstr()</i>,respectively, is recommended.</blockquote><h4><a name = "tag_002_001_493"> </a>SEE ALSO</h4><blockquote><i><a href="inch.html">inch()</a></i>,<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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -