Explicitly specify `all' as the default target(as it used to be), so as
[dragonfly.git] / lib / libncurses / man / curs_inchstr.3
1 .\"***************************************************************************
2 .\" Copyright (c) 1998,2000 Free Software Foundation, Inc.                   *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" $Id: curs_inchstr.3x,v 1.8 2000/07/01 20:16:18 tom Exp $
30 .\" $DragonFly: src/lib/libncurses/man/curs_inchstr.3,v 1.1 2005/03/12 19:13:54 eirikn Exp $
31 .TH curs_inchstr 3X ""
32 .SH NAME
33 \fBinchstr\fR,
34 \fBinchnstr\fR,
35 \fBwinchstr\fR,
36 \fBwinchnstr\fR,
37 \fBmvinchstr\fR,
38 \fBmvinchnstr\fR,
39 \fBmvwinchstr\fR,
40 \fBmvwinchnstr\fR - get a string of characters (and attributes) from a \fBcurses\fR window
41 .SH SYNOPSIS
42 \fB#include <curses.h>\fR
43
44 \fBint inchstr(chtype *chstr);\fR
45 .br
46 \fBint inchnstr(chtype *chstr, int n);\fR
47 .br
48 \fBint winchstr(WINDOW *win, chtype *chstr);\fR
49 .br
50 \fBint winchnstr(WINDOW *win, chtype *chstr, int n);\fR
51 .br
52 \fBint mvinchstr(int y, int x, chtype *chstr);\fR
53 .br
54 \fBint mvinchnstr(int y, int x, chtype *chstr, int n);\fR
55 .br
56 \fBint mvwinchstr(WINDOW *win, int y, int x, chtype *chstr);\fR
57 .br
58 \fBint mvwinchnstr(WINDOW *win, int y, int x, chtype *chstr, int n);\fR
59 .br
60 .SH DESCRIPTION
61 These routines return a NULL-terminated array of \fBchtype\fR quantities,
62 starting at the current cursor position in the named window and ending at the
63 right margin of the window.  The four functions with \fIn\fR as
64 the last argument, return a leading substring at most \fIn\fR characters long
65 (exclusive of the trailing (chtype)0).
66 Constants defined in \fB<curses.h>\fR can be used with the \fB&\fR (logical
67 AND) operator to extract the character or the attribute alone from any position
68 in the \fIchstr\fR [see \fBcurs_inch\fR(3X)].
69 .SH RETURN VALUE
70 All routines return the integer \fBERR\fR upon failure and an integer value
71 other than \fBERR\fR upon successful completion (the number of characters
72 retrieved, exclusive of the trailing 0).
73 .SH NOTES
74 Note that all routines except \fBwinchnstr\fR may be macros.  SVr4 does not
75 document whether the result string is 0-terminated; it does not document
76 whether a length limit argument includes any trailing 0; and it does not
77 document the meaning of the return value.
78 .SH PORTABILITY
79 These functions are described in the XSI Curses standard, Issue 4.  It is no
80 more specific than the SVr4 documentation on the trailing 0.  It does specify
81 that the successful return of the functions is \fBOK\fR.
82 .SH SEE ALSO
83 \fBcurses\fR(3X), \fBcurs_inch\fR(3X).
84 .\"#
85 .\"# The following sets edit modes for GNU EMACS
86 .\"# Local Variables:
87 .\"# mode:nroff
88 .\"# fill-column:79
89 .\"# End: