DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

curs_printw(S-osr5)


curs_printw: printw, wprintw, mvprintw, mvwprintw, vwprintw -- print formatted output in curses windows

Syntax

cc ... -lcurses

#include <curses.h>

int printw(char *fmt [, arg] . . .); int wprintw(WINDOW *win, char *fmt [, arg] . . .); int mvprintw(int y, int x, char *fmt [, arg] . . .); int mvwprintw(WINDOW *win, int y, int x, char *fmt [, arg] . . .);

#include <varargs.h>

int vwprintw(WINDOW *win, char *fmt, va_list varglist);

Description

The printw(S-osr5), wprintw(S-osr5), mvprintw(S-osr5), and mvwprintw(S-osr5) routines are analogous to printf(S-osr5). In effect, the string that printf( ) would produce is produced instead as though by waddstr(S-osr5).

The vwprintw(S-osr5) routine is analogous to vprintf(S-osr5) and does a wprintw( ) using a variable argument list. The third argument is va_list, a pointer to a list of arguments, as defined in varargs.h.

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.

Files


/usr/lib/libcurses.a
the library

See also

curses(S-osr5), printf(S-osr5), vprintf(S-osr5)

Standards conformance

printw(S-osr5), wprintw(S-osr5), mvprintw(S-osr5), mvwprintw(S-osr5), and vwprintw(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