. use library function to parse memory string
[minix3.git] / lib / curses / move.c
blobe5059c959b9e477b34196157efe818a163c6807a
1 #include <curses.h>
2 #include "curspriv.h"
4 /****************************************************************/
5 /* Wmove() moves the cursor in window 'win' to position (x,y). */
6 /****************************************************************/
8 int wmove(win, y, x)
9 WINDOW *win;
10 int y;
11 int x;
13 if ((x<0) || (x>win->_maxx) || (y<win->_regtop) || (y>win->_regbottom))
14 return(ERR);
15 win->_curx = x;
16 win->_cury = y;
17 return(OK);