vw_printw(3curses)


vw_printw -- print formatted output in window

Synopsis

cc [options] file -lcurses
#include <stdarg.h>
#include <curses.h>

int vw_printw(WINDOW *, char *, va_list varglist);

Description

The vw_printw(3curses) function achieves the same effect as wprintw(3curses) using a variable argument list. The third argument is a va_list, as defined in <stdarg.h>.

Return value

Upon successful completion, vw_printw(3curses) returns OK. Otherwise, it returns ERR.

Errors

No errors are defined.

Usage

The vw_printw(3curses) function is preferred over vwprintw(3curses). The use of the vwprintw(3curses) and the vw_printw(3curses) functions in the same file will not work, due to the requirement to include varargs.h and stdarg.h which both contain definitions of va_list.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

mvprintw(3curses), fprintf(3S), curses(4), stdarg(5)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004