1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #ifndef lint
   8: static char sccsid[] = "@(#)move.c	5.2 (Berkeley) 10/8/85";
   9: #endif not lint
  10: 
  11: # include   "curses.ext"
  12: 
  13: /*
  14:  *	This routine moves the cursor to the given point
  15:  *
  16:  */
  17: wmove(win, y, x)
  18: reg WINDOW  *win;
  19: reg int     y, x; {
  20: 
  21: # ifdef DEBUG
  22:     fprintf(outf, "MOVE to (%d, %d)\n", y, x);
  23: # endif
  24:     if (x < 0 || y < 0)
  25:         return ERR;
  26:     if (x >= win->_maxx || y >= win->_maxy)
  27:         return ERR;
  28:     win->_curx = x;
  29:     win->_cury = y;
  30:     return OK;
  31: }
Last modified: 1985-11-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 857
Valid CSS Valid XHTML 1.0 Strict