home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
AECUR100.ZIP
/
CONTRIB
/
CURSES
/
SRC
/
MVWIN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-08
|
524b
|
27 lines
/*------------------------------------------------------------
*
* mvwin.c
*
* copyright (c) 1987,88,89,90 J. Alan Eldridge
*
* move a window on the screen, if it fits
*
*----------------------------------------------------------*/
#include "curses.h"
int
mvwin(win, y, x)
WINDOW *win;
int y, x;
{
if (win->maxy + y < LINES && win->maxx + x < COLS) {
win->orgy = y;
win->orgx = x;
touchwin(win);
return OK;
} else
return ERR;
}