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