svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
curs_addchstr(3x)
curs_addchstr(3x) Library calls curs_addchstr(3x)
NAME
addchstr, waddchstr, mvaddchstr, mvwaddchstr, addchnstr, waddchnstr,
mvaddchnstr, mvwaddchnstr - add a curses character string to a window
SYNOPSIS
#include <ncursesw/curses.h>
int addchstr(const chtype * chstr);
int waddchstr(WINDOW * win, const chtype * chstr);
int mvaddchstr(int y, int x, const chtype * chstr);
int mvwaddchstr(WINDOW * win, int y, int x,
const chtype * chstr);
int addchnstr(const chtype * chstr, int n);
int waddchnstr(WINDOW * win, const chtype * chstr, int n);
int mvaddchnstr(int y, int x, const chtype * chstr, int n);
int mvwaddchnstr(WINDOW * win, int y, int x,
const chtype * chstr, int n);
DESCRIPTION
waddchstr copies the string of curses characters chstr to the window
win. A null curses character terminates the string. waddchnstr does
the same, but copies at most n characters, or as many as possible if n
is -1. ncurses(3X) describes the variants of these functions.
Because these functions do not call waddch(3X) internally, they are
faster than waddstr(3X) and waddnstr(3X). On the other hand, they
• do not treat the backspace, carriage return, or line feed charac‐
ters specially;
• do not represent unprintable characters with unctrl(3X);
• do not update the cursor position to follow the last character
written;
• truncate the string at the window's right margin, rather than wrap‐
ping it to the next line and potentially scrolling.
RETURN VALUE
These functions return OK on success and ERR on failure.
In ncurses, these functions fail if
• the curses screen has not been initialized,
• chstr is a null pointer, or
• (for functions taking a WINDOW pointer argument) win is a null
pointer.
Functions prefixed with “mv” first perform cursor movement and fail if
the position (y, x) is outside the window boundaries.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
box; cbp-1 | cbp-1 l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE = Availabil‐
ity library/ncurses = Stability Uncommitted
NOTES
All of these functions except waddchnstr may be implemented as macros.
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at:
https://github.com/oracle/solaris-userland
The original community source was downloaded from:
https://invisible-mirror.net/archives/ncurses/cur‐
rent/ncurses-6.5-20250614.tgz
Further information about this software can be found on the open source
community website at https://invisible-island.net/ncurses/.
PORTABILITY
X/Open Curses Issue 4 describes these functions. It specifies no error
conditions for them.
SVr4 describes a successful return value only as “an integer value
other than ERR”.
HISTORY
SVr3.1 (1987) introduced these functions.
SEE ALSO
curs_add_wchstr(3X) describes comparable functions of the ncurses li‐
brary in its wide-character configuration (ncursesw).
curses(3X), curs_addch(3X), curs_addstr(3X)
ncurses 6.5 2025-03-15 curs_addchstr(3x)