mvprintw(3curses)


mvprintw -- print formatted output in window

Synopsis

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

int mvprintw(int y, int x, char *fmt, ...);

int mvwprintw(WINDOW *win, int y, int x, char *fmt, ...);

int printw(char *fmt, ...);

int wprintw(WINDOW *win, char *fmt, ...);

Description

The mvprintw(3curses), mvwprintw(3curses), printw(3curses) and wprintw(3curses) functions are analogous to printf(3S). The effect of these functions is as though sprintf(3S) were used to format the string, and then waddstr(3curses) were used to add that multi-byte string to the current or specified window at the current or specified cursor position.

Return value

Upon successful completion, these functions return OK. Otherwise, they return ERR.

Errors

No errors are defined.

Standards Conformance

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

References

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