date and time created 83/05/31 00:19:54 by sam
[unix-history] / usr / src / lib / libcurses / mvwin.c
CommitLineData
45d02bb5
KA
1# include "curses.ext"
2
3/*
4 * relocate the starting position of a window
5 *
6 * %G% (Berkeley) @(#)mvwin.c 1.1
7 */
8
9mvwin(win, by, bx)
10reg WINDOW *win;
11reg int by, bx; {
12
13 if (by + win->_maxy > LINES || bx + win->_maxx > COLS)
14 return ERR;
15 win->_begy = by;
16 win->_begx = bx;
17 touchwin(win);
18 return OK;
19}