DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

curs_addstr(S-osr5)


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-osr5) 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-osr5) and waddnstr(S-osr5) can be macros.

Files


/usr/lib/libcurses.a
the library

See also

curses(S-osr5), curs_addch(S-osr5)

Standards conformance

addstr(S-osr5), waddstr(S-osr5), mvaddstr(S-osr5), addnstr(S-osr5), waddnstr(S-osr5), mvaddnstr(S-osr5), mvwaddstr(S-osr5), and mvwaddnstr(S-osr5) are not part of any currently supported standard; they were developed by UNIX System Laboratories, Inc. and are maintained by The SCO Group.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005