1curs_addstr(3X)                                                curs_addstr(3X)
2
3
4

NAME

6       addstr, addnstr, waddstr, waddnstr, mvaddstr, mvaddnstr, mvwaddstr,
7       mvwaddnstr - add a string of characters to a curses window and advance
8       cursor
9

SYNOPSIS

11       #include <curses.h>
12
13       int addstr(const char *str);
14       int addnstr(const char *str, int n);
15       int waddstr(WINDOW *win, const char *str);
16       int waddnstr(WINDOW *win, const char *str, int n);
17       int mvaddstr(int y, int x, const char *str);
18       int mvaddnstr(int y, int x, const char *str, int n);
19       int mvwaddstr(WINDOW *win, int y, int x, const char *str);
20       int mvwaddnstr(WINDOW *win, int y, int x, const char *str, int n);
21

DESCRIPTION

23       These functions write the (null-terminated) character string str on the
24       given window.  It is similar to calling waddch once for each  character
25       in the string.
26
27       The mv functions perform cursor movement once, before writing any char‐
28       acters.  Thereafter, the cursor is advanced as a side-effect of writing
29       to the window.
30
31       The  four functions with n as the last argument write at most n charac‐
32       ters, or until a terminating null is reached.  If n is -1, then the en‐
33       tire string will be added.
34

RETURN VALUE

36       All functions return the integer ERR upon failure and OK on success.
37
38       X/Open  does  not define any error conditions.  This implementation re‐
39       turns an error
40
41       ·   if the window pointer is null or
42
43       ·   if the string pointer is null or
44
45       ·   if the corresponding calls to waddch return an error.
46
47       Functions with a "mv" prefix first  perform  a  cursor  movement  using
48       wmove, and return an error if the position is outside the window, or if
49       the window pointer is null.
50

NOTES

52       All of these functions except waddnstr may be macros.
53

PORTABILITY

55       These functions are described in the XSI Curses standard, Issue 4.
56

SEE ALSO

58       curses(3X), curs_addch(3X).
59
60
61
62                                                               curs_addstr(3X)
Impressum