new copyright notice
[unix-history] / usr / src / lib / libcurses / printw.c
CommitLineData
87c6fcf8 1/*
2f14f200
KB
2 * Copyright (c) 1981 Regents of the University of California.
3 * All rights reserved.
4 *
e21c485a 5 * %sccs.include.redist.c%
87c6fcf8
DF
6 */
7
8#ifndef lint
e21c485a 9static char sccsid[] = "@(#)printw.c 5.5 (Berkeley) %G%";
2f14f200 10#endif /* not lint */
87c6fcf8 11
113386fd
KA
12/*
13 * printw and friends
14 *
113386fd
KA
15 */
16
17# include "curses.ext"
18
19/*
20 * This routine implements a printf on the standard screen.
21 */
22printw(fmt, args)
23char *fmt;
24int args; {
25
8543fbf9
KB
26 char buf[512];
27
28 (void) vsprintf(buf, fmt, &args);
29 return waddstr(stdscr, buf);
113386fd
KA
30}
31
32/*
33 * This routine implements a printf on the given window.
34 */
35wprintw(win, fmt, args)
36WINDOW *win;
37char *fmt;
38int args; {
39
113386fd
KA
40 char buf[512];
41
8543fbf9 42 (void) vsprintf(buf, fmt, &args);
113386fd
KA
43 return waddstr(win, buf);
44}