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