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: #if !defined(lint) && !defined(NOSCCS)
   8: static char sccsid[] = "@(#)move.c	5.2 (Berkeley) 10/8/85";
   9: #endif
  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: 1987-07-26
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1041
Valid CSS Valid XHTML 1.0 Strict