/* * Copyright (c) 1981 Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)printw.c 5.5 (Berkeley) 06/01/90"; #endif /* not lint */ /* * printw and friends * */ # include "curses.ext" /* * This routine implements a printf on the standard screen. */ printw(fmt, args) char *fmt; int args; { char buf[512]; (void) vsprintf(buf, fmt, &args); return waddstr(stdscr, buf); } /* * This routine implements a printf on the given window. */ wprintw(win, fmt, args) WINDOW *win; char *fmt; int args; { char buf[512]; (void) vsprintf(buf, fmt, &args); return waddstr(win, buf); }