2 /* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
3 * details. If they are missing then this copy is in violation of *
4 * the copyright conditions. */
9 ** The routines printw(), wprintw() and friends.
13 #include "curses.priv.h"
15 int printw(char *fmt, ...)
20 T(("printw(\"%s\",...) called", fmt));
23 vsprintf(buf, fmt, argp);
25 return(waddstr(stdscr, buf));
30 int wprintw(WINDOW *win, char *fmt, ...)
35 T(("wprintw(%x,\"%s\",...) called", win, fmt));
38 vsprintf(buf, fmt, argp);
40 return(waddstr(win, buf));
45 int mvprintw(int y, int x, char *fmt, ...)
51 vsprintf(buf, fmt, argp);
53 return(move(y, x) == OK ? waddstr(stdscr, buf) : ERR);
58 int mvwprintw(WINDOW *win, int y, int x, char *fmt, ...)
64 vsprintf(buf, fmt, argp);
66 return(wmove(win, y, x) == OK ? waddstr(win, buf) : ERR);
69 int vwprintw(WINDOW *win, char *fmt, va_list argp)
73 vsprintf(buf, fmt, argp);
74 return(waddstr(win, buf));