|
» |
|
|
|
The addstr set of routines is used to add a character string (with attributes) to a window. Syntax | |
#include <curses.h>
int addstr(char *str);
int waddstr(WINDOW *win, char *str);
int addnstr(char *str, int n);
int waddnstr(WINDOW *win, char *str, int n);
int mvaddstr(int y, int x, char *str);
int mvwaddstr(WINDOW *win, int y, int x, char *str);
int mvaddnstr(int y, int x, char *str, int n);
int mvwaddnstr(WINDOW *win, int y, int x, char *str, int n);
|
Parameters | |
- str
A pointer to the character string that is to be
written to the window.
- win
A pointer to the window in which the string is
to be written.
- x
The x (column) coordinate of the starting position of str in the window.
- y
The y (row) coordinate of the starting position of str in the window.
Return Values | |
- OK
Successful completion.
- ERR
An error occurred. An attempt was made to write
outside the window boundary.
Implementation Considerations | |
The addstr(), waddstr(), mvaddstr(), and mvwaddstr() are identical to XPG/3. The addnstr(), waddnstr(), mvaddnstr(), and mvwaddnstr() routines are UNIX System V implementations. See Also | |
waddch(), waddchnstr() Portability | |
The addstr(), waddstr(), mvaddstr(), and mvwaddstr() routines conform to HP-UX, UNIX System V, and XPG/3. The addnstr(), waddnstr(), mvaddnstr(), and mvwaddnstr() routines conform to UNIX System V.
|