summaryrefslogtreecommitdiffstats
path: root/ncurses-5.2/doc/html/man/curs_addstr.3x.html
blob: e83e795f01fd65db5191e3dc3b944fca0bd6866d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

</PRE>
<H2>NAME</H2><PRE>
       <B>addstr</B>,  <B>addnstr</B>,  <B>waddstr</B>, <B>waddnstr</B>, <B>mvaddstr</B>, <B>mvaddnstr</B>,
       <B>mvwaddstr</B>, <B>mvwaddnstr</B> - add a string of  characters  to  a
       <B>curses</B> window and advance cursor


</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>#include</B> <B>&lt;curses.h&gt;</B>

       <B>int</B> <B>addstr(const</B> <B>char</B> <B>*str);</B>
       <B>int</B> <B>addnstr(const</B> <B>char</B> <B>*str,</B> <B>int</B> <B>n);</B>
       <B>int</B> <B>waddstr(WINDOW</B> <B>*win,</B> <B>const</B> <B>char</B> <B>*str);</B>
       <B>int</B> <B>waddnstr(WINDOW</B> <B>*win,</B> <B>const</B> <B>char</B> <B>*str,</B> <B>int</B> <B>n);</B>
       <B>int</B> <B>mvaddstr(int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>const</B> <B>char</B> <B>*str);</B>
       <B>int</B> <B>mvaddnstr(int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>const</B> <B>char</B> <B>*str,</B> <B>int</B> <B>n);</B>
       <B>int</B> <B>mvwaddstr(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>const</B> <B>char</B> <B>*str);</B>
       <B>int</B> <B>mvwaddnstr(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>const</B> <B>char</B> <B>*str,</B>
       <B>int</B> <B>n);</B>


</PRE>
<H2>DESCRIPTION</H2><PRE>
       These  routines  write  the characters of the (null-termi-
       nated) character string <I>str</I> on the given  window.   It  is
       similar  to  calling <B>waddch</B> once for each character in the
       string.  The four routines with <I>n</I>  as  the  last  argument
       write  at  most <I>n</I> characters.  If <I>n</I> is -1, then the entire
       string will be added.


</PRE>
<H2>RETURN VALUE</H2><PRE>
       All routines return the integer <B>ERR</B> upon failure and <B>OK</B> on
       success  (the  SVr4 manuals specify only "an integer value
       other than <B>ERR</B>") upon successful completion.


</PRE>
<H2>NOTES</H2><PRE>
       Note  that  all  of  these  routines  except  <B>waddstr</B>  and
       <B>waddnstr</B> may be macros.


</PRE>
<H2>PORTABILITY</H2><PRE>
       All  these  entry  points  are described in the XSI Curses
       standard, Issue 4.  The XSI errors EILSEQ  and  EOVERFLOW,
       associated  with  extended-level  conformance, are not yet
       detected.


</PRE>
<H2>SEE ALSO</H2><PRE>
       <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="curs_addch.3x.html">curs_addch(3x)</A></B>.











</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>