curs_addwchstr(S-osr5)
curs_addwchstr: addwchstr, addwchnstr, waddwchstr, waddwchnstr, mvaddwchstr, mvaddwchnstr, mvwaddwchstr, mvwaddwchnstr --
add string of wchar_t characters (and attributes) to a curses window
Syntax
cc ... -lcurses
#include <curses.h>
int addwchstr(chtype *wchstr);
int addwchnstr(chtype *wchstr, int n);
int waddwchstr(WINDOW *win, chtype *wchstr);
int waddwchnstr(WINDOW *win, chtype *wchstr, int n);
int mvaddwchstr(int y, int x, chtype *wchstr);
int mvaddwchnstr(int y, int x, chtype *wchstr, int n);
int mvwaddwchstr(WINDOW *win, int y, int x, chtype *wchstr);
int mvwaddwchnstr(WINDOW *win, int y, int x, chtype *wchstr, int n);
Description
All of these routines copy
wchstr,
which points to a string of
wchar_t
characters, directly into the window image structure
starting at the current cursor position.
The four routines with n as the last argument copy at most
n elements,
but no more than fit on the line.
If n = -1 then the whole string is copied,
to the maximum number that fit on the line.
The window cursor does not advance.
These routines work faster than
waddnwstr(S-osr5)
because they merely copy
wchstr into the window image structure.
But you must be careful when using these functions because:
-
They don't do any checking (such as for the newline character).
-
They don't advance the current cursor position.
-
They truncate the string rather than wrapping it around to the new line.
Return values
All routines return the integer ERR on
failure and an integer value other than ERR
on successful completion,
unless otherwise noted in the preceding routine descriptions.
Warning
The header file curses.h automatically includes the header files
stdio.h and unctrl.h.
All routines except
waddwchnstr(S-osr5)
can be macros.
Files
/usr/lib/libcurses.a-
the library
See also
curses(S-osr5)
Standards conformance
addwchstr(S-osr5),
addwchnstr(S-osr5),
waddwchstr(S-osr5),
waddwchnstr(S-osr5),
mvaddwchstr(S-osr5),
mvaddwchnstr(S-osr5),
mvwaddwchstr(S-osr5),
and
mvwaddwchnstr(S-osr5)
are not part of any
currently supported standard;
they were developed by UNIX System Laboratories, Inc. and
are maintained by The SCO Group.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005