Back to index

tetex-bin  3.0
Functions
lib_scrreg.c File Reference
#include <curses.priv.h>

Go to the source code of this file.

Functions

 wsetscrreg (WINDOW *win, int top, int bottom)

Function Documentation

wsetscrreg ( WINDOW win,
int  top,
int  bottom 
)

Definition at line 46 of file lib_scrreg.c.

{
    T((T_CALLED("wsetscrreg(%p,%d,%d)"), win, top, bottom));

    if (win &&
       top >= 0 && top <= win->_maxy &&
       bottom >= 0 && bottom <= win->_maxy &&
       bottom > top) {
       win->_regtop = (NCURSES_SIZE_T) top;
       win->_regbottom = (NCURSES_SIZE_T) bottom;

       returnCode(OK);
    } else
       returnCode(ERR);
}