VMS Help  —  CRTL  [w]addstr
    Add the string pointed to by str to the window at the current
    position of the cursor.

    Format

      #include  <curses.h>

      int addstr  (char *str);

      int waddstr  (WINDOW *win, char *str);

1  –  Arguments

 win

    A pointer to the window.

 str

    A pointer to a character string.

2  –  Description

    When the waddstr function is used on a subwindow, the string is
    written onto the underlying window as well.

    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.

3  –  Return Values

    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.
Close Help