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  routines write the characters of the (null-terminated) character
24       string str on the given window.  It is similar to calling  waddch  once
25       for each character in the string.  The four routines with n as the last
26       argument write at most n characters.  If  n  is  -1,  then  the  entire
27       string  will be added, up to the maximum number of characters that will
28       fit on the line, or until a terminating null is reached.
29

RETURN VALUE

31       All routines return the integer ERR upon failure and OK on success (the
32       SVr4  manuals specify only "an integer value other than ERR") upon suc‐
33       cessful completion.
34
35       X/Open does not define any error conditions.  This  implementation  re‐
36       turns  an  error if the window pointer is null or if the string pointer
37       is null or if the corresponding calls to waddch return an error.
38

NOTES

40       Note that all of these routines except  waddstr  and  waddnstr  may  be
41       macros.
42

PORTABILITY

44       All  these entry points are described in the XSI Curses standard, Issue
45       4.  The XSI errors EILSEQ and EOVERFLOW, associated with extended-level
46       conformance, are not yet detected.
47

SEE ALSO

49       curses(3X), curs_addch(3X).
50
51
52
53                                                               curs_addstr(3X)
Impressum