new copyright; att/bsd/shared
[unix-history] / usr / src / lib / libcurses / move.c
/*
* Copyright (c) 1981 Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
static char sccsid[] = "@(#)move.c 5.5 (Berkeley) %G%";
#endif /* not lint */
# include "curses.ext"
/*
* This routine moves the cursor to the given point
*
*/
wmove(win, y, x)
reg WINDOW *win;
reg int y, x; {
# ifdef DEBUG
fprintf(outf, "MOVE to (%d, %d)\n", y, x);
# endif
if (x < 0 || y < 0)
return ERR;
if (x >= win->_maxx || y >= win->_maxy)
return ERR;
win->_curx = x;
win->_cury = y;
return OK;
}