Commit | Line | Data |
---|---|---|
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 | 8 | static 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 | */ | |
21 | printw(fmt, args) | |
22 | char *fmt; | |
23 | int 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 | */ | |
34 | wprintw(win, fmt, args) | |
35 | WINDOW *win; | |
36 | char *fmt; | |
37 | int args; { | |
38 | ||
113386fd KA |
39 | char buf[512]; |
40 | ||
8543fbf9 | 41 | (void) vsprintf(buf, fmt, &args); |
113386fd KA |
42 | return waddstr(win, buf); |
43 | } |