DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

curs_addstr(S)


curs_addstr: addstr, addnstr, waddstr, waddnstr, mvaddstr, mvaddnstr, mvwaddstr, mvwaddnstr -- add a string of characters to a curses window and advance cursor

Syntax

cc ... -lcurses

#include <curses.h>

int addstr(char *str); int addnstr(char *str, int n); int waddstr(WINDOW *win, char *str); int waddnstr(WINDOW *win, char *str, int n); int mvaddstr(int y, int x, char *str); int mvaddnstr(int y, int x, char *str, int n); int mvwaddstr(WINDOW *win, int y, int x, char *str); int mvwaddnstr(WINDOW *win, int y, int x, char *str, int n);

Description

All of these routines write all the characters of the null-terminated character string str on the given window. The effect is similar to calling waddch(S) once for each character in the string. The four routines with n as the last argument write at most n characters. If n is negative, then the entire string is added.

Return values

All routines return the integer ERR on failure and an integer value other than ERR on successful completion.

Warning

The header file curses.h automatically includes the header files stdio.h and unctrl.h.

All of these routines except waddstr(S) and waddnstr(S) can be macros.

Files


/usr/lib/libcurses.a
the library

See also

curses(S), curs_addch(S)

Standards conformance

addstr(S), waddstr(S), mvaddstr(S), addnstr(S), waddnstr(S), mvaddnstr(S), mvwaddstr(S), and mvwaddnstr(S) are not part of any currently supported standard; they were developed by UNIX System Laboratories, Inc. and are maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003