1curs_addwstr(3X)                                              curs_addwstr(3X)
2
3
4

NAME

6       addwstr, addnwstr, waddwstr, waddnwstr, mvaddwstr, mvaddnwstr,
7       mvwaddwstr, mvwaddnwstr - add a string of wide characters to a curses
8       window and advance cursor
9

SYNOPSIS

11       #include <curses.h>
12
13       int addwstr(const wchar_t *wstr);
14       int addnwstr(const wchar_t *wstr, int n);
15       int waddwstr(WINDOW *win, const wchar_t *wstr);
16       int waddnwstr(WINDOW *win, const wchar_t *wstr, int n);
17
18       int mvaddwstr(int y, int x, const wchar_t *wstr);
19       int mvaddnwstr(int y, int x, const wchar_t *wstr, int n);
20       int mvwaddwstr(WINDOW *win, int y, int x, const wchar_t *wstr);
21       int mvwaddnwstr(WINDOW *win, int y, int x, const wchar_t *wstr, int n);
22

DESCRIPTION

24       These  functions  write the characters of the (null-terminated) wchar_t
25       character string wstr on the given window.  It is similar to construct‐
26       ing a cchar_t for each wchar_t in the string, then calling wadd_wch for
27       the resulting cchar_t.
28
29       The mv functions perform cursor movement once, before writing any char‐
30       acters.  Thereafter, the cursor is advanced as a side-effect of writing
31       to the window.
32
33       The four functions with n as the last argument write at most n  wchar_t
34       characters,  or  until a terminating null is reached.  If n is -1, then
35       the entire string will be added.
36

RETURN VALUE

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

NOTES

54       All of these functions except waddnwstr may be macros.
55

PORTABILITY

57       These functions are described in the XSI Curses standard, Issue 4.
58

SEE ALSO

60       curses(3X), curs_add_wch(3X)
61
62
63
64                                                              curs_addwstr(3X)
Impressum