xref: /original-bsd/lib/libcurses/mvprintw.c (revision 0b685140)
1 # include	"curses.ext"
2 
3 /*
4  * implement the mvprintw commands.  Due to the variable number of
5  * arguments, they cannot be macros.  Sigh....
6  *
7  * 01/26/81 (Berkeley) @(#)mvprintw.c	1.1
8  */
9 
10 mvprintw(y, x, fmt, args)
11 reg int		y, x;
12 char		*fmt;
13 int		args; {
14 
15 	return move(y, x) == OK ? _sprintw(stdscr, fmt, &args) : ERR;
16 }
17 
18 mvwprintw(win, y, x, fmt, args)
19 reg WINDOW	*win;
20 reg int		y, x;
21 char		*fmt;
22 int		args; {
23 
24 	return wmove(win, y, x) == OK ? _sprintw(win, fmt, &args) : ERR;
25 }
26