2 /***************************************************************************
4 ****************************************************************************
5 * ncurses is copyright (C) 1992-1995 *
7 * zmbenhal@netcom.com *
9 * esr@snark.thyrsus.com *
11 * Permission is hereby granted to reproduce and distribute ncurses *
12 * by any means and for any fee, whether alone or as part of a *
13 * larger distribution, in source or in binary form, PROVIDED *
14 * this notice is included with any such distribution, and is not *
15 * removed from any of its header files. Mention of ncurses in any *
16 * applications linked with it is highly appreciated. *
18 * ncurses comes AS IS with no warranty, implied or expressed. *
20 ***************************************************************************/
27 ** The routine wsetscrreg().
31 #include <curses.priv.h>
33 MODULE_ID("$Id: lib_scrreg.c,v 1.5 1997/02/01 23:22:54 tom Exp $")
35 int wsetscrreg(WINDOW *win, int top, int bottom)
37 T((T_CALLED("wsetscrreg(%p,%d,%d)"), win, top, bottom));
39 if (top >= 0 && top <= win->_maxy &&
40 bottom >= 0 && bottom <= win->_maxy &&
43 win->_regtop = (short)top;
44 win->_regbottom = (short)bottom;