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       int mvaddwstr(int y, int x, const wchar_t *wstr);
18       int mvaddnwstr(int y, int x, const wchar_t *wstr, int n);
19       int mvwaddwstr(WINDOW *win, int y, int x, const wchar_t *wstr);
20       int mvwaddnwstr(WINDOW *win, int y, int x, const wchar_t *wstr, int n);
21

DESCRIPTION

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

RETURN VALUE

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

NOTES

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

PORTABILITY

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

SEE ALSO

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