/* * Copyright (c) 1981 Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)mvprintw.c 5.5 (Berkeley) 06/01/90"; #endif /* not lint */ # include "curses.ext" /* * implement the mvprintw commands. Due to the variable number of * arguments, they cannot be macros. Sigh.... * */ mvprintw(y, x, fmt, args) reg int y, x; char *fmt; int args; { char buf[512]; if (move(y, x) != OK) return ERR; (void) vsprintf(buf, fmt, &args); return waddstr(stdscr, buf); } mvwprintw(win, y, x, fmt, args) reg WINDOW *win; reg int y, x; char *fmt; int args; { char buf[512]; if (move(y, x) != OK) return ERR; (void) vsprintf(buf, fmt, &args); return waddstr(win, buf); }