3 \fBinchstr\fR, \fBinchnstr\fR, \fBwinchstr\fR,
4 \fBwinchnstr\fR, \fBmvinchstr\fR, \fBmvinchnstr\fR, \fBmvwinchstr\fR,
5 \fBmvwinchnstr\fR - get a string of characters (and attributes) from a
8 \fB#include <curses.h>\fR
10 \fBint inchstr(chtype *chstr);\fR
12 \fBint inchnstr(chtype *chstr, int n);\fR
14 \fBint winchstr(WINDOW *win, chtype *chstr);\fR
16 \fBint winchnstr(WINDOW *win, chtype *chstr, int n);\fR
18 \fBint mvinchstr(int y, int x, chtype *chstr);\fR
20 \fBint mvinchnstr(int y, int x, chtype *chstr, int n);\fR
22 \fBint mvwinchstr(WINDOW *win, int y, int x, chtype *chstr);\fR
24 \fBint mvwinchnstr(WINDOW *win, int y, int x, chtype *chstr, int n);\fR
27 These routines return a NULL-terminated array of \fBchtype\fR quantities,
28 starting at the current cursor position in the named window and ending at the
29 right margin of the window. The four functions with \fIn\fR as
30 the last argument, return a leading substring at most \fIn\fR characters long
31 (exclusive of the trailing (chtype)0).
32 Constants defined in \fB<curses.h>\fR can be used with the \fB&\fR (logical
33 AND) operator to extract the character or the attribute alone from any position
34 in the \fIchstr\fR [see \fBcurs_inch\fR(3X)].
36 All routines return the integer \fBERR\fR upon failure and an integer value
37 other than \fBERR\fR upon successful completion (the number of characters
38 retrieved, exclusive of the trailing 0).
40 Note that all routines except \fBwinchnstr\fR may be macros. SVr4 does not
41 document whether the result string is 0-terminated; it does not document
42 whether a length limit argument includes any trailing 0; and it does not
43 document the meaning of the return value.
45 These functions are described in the XSI Curses standard, Issue 4. It is no
46 more specific than the SVr4 documentation on the trailing 0. It does specify
47 that the successful return of the functions is \fBOK\fR.
49 \fBcurses\fR(3X), \fBcurs_inch\fR(3X).
51 .\"# The following sets edit modes for GNU EMACS