addstr(3cur)addstr(3cur)Name
addstr, waddstr, mvaddstr, mvwaddstr - add string to window
Syntax
#include <cursesX.h>
int addstr(str)
char ∗str;
int waddstr(win, str)
WINDOW ∗win;
char ∗str;
int mvaddstr(y, x, str)
int y, x;
char ∗str;
int mvwaddstr(win, y, x, str)
WINDOW ∗win;
int y, x;
char ∗str;
Description
The routine writes all the characters of the null-terminated character
string on the default window at the current (y, x) coordinates.
The routine writes all the characters of the null terminated character
string on the specified window at the current (y, x) coordinates.
The routine writes all the characters of the null terminated character
string on the default window at the specified (y, x) coordinates.
The routine writes all the characters of the null terminated character
string on the specified window at the specified (y, x) coordinates.
The following information applies to all the routines. All the rou‐
tines return if writing the string causes illegal scrolling. In this
case the routine will write as much as possible of the string on the
window.
These routines are functionally equivalent to calling or once for each
character in the string.
The routines and are macros.
Return Values
The and functions return OK on success and ERR on error.
See Alsoaddch(3cur), waddch(3cur)addstr(3cur)