Add the string pointed to by str to the window at the current position of the cursor.
#include <curses.h> int addstr (char *str); int waddstr (WINDOW *win, char *str);
The addstr routine performs the same function as waddstr, but on the stdscr window.
The cursor position changes as a result of calling this routine.
OK | Indicates success. |
ERR | Indicates that the function causes the screen to scroll illegally, but it places as much of the string onto the window as possible. For more information, see the scrollok function in this section. |