lib_clearok.c revision 50276
1139778Simp/****************************************************************************
2190507Slulf * Copyright (c) 1998 Free Software Foundation, Inc.                        *
3130389Sle *                                                                          *
4130389Sle * Permission is hereby granted, free of charge, to any person obtaining a  *
5130389Sle * copy of this software and associated documentation files (the            *
6130389Sle * "Software"), to deal in the Software without restriction, including      *
7130389Sle * without limitation the rights to use, copy, modify, merge, publish,      *
8130389Sle * distribute, distribute with modifications, sublicense, and/or sell       *
9130389Sle * copies of the Software, and to permit persons to whom the Software is    *
10130389Sle * furnished to do so, subject to the following conditions:                 *
11130389Sle *                                                                          *
12130389Sle * The above copyright notice and this permission notice shall be included  *
13130389Sle * in all copies or substantial portions of the Software.                   *
14130389Sle *                                                                          *
15130389Sle * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16130389Sle * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17130389Sle * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18130389Sle * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19130389Sle * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20130389Sle * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21130389Sle * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22130389Sle *                                                                          *
23130389Sle * Except as contained in this notice, the name(s) of the above copyright   *
24130389Sle * holders shall not be used in advertising or otherwise to promote the     *
25130389Sle * sale, use or other dealings in this Software without prior written       *
26130389Sle * authorization.                                                           *
27130389Sle ****************************************************************************/
28130389Sle
29130389Sle/****************************************************************************
30130389Sle *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               *
31130389Sle *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
32130389Sle ****************************************************************************/
33130389Sle
34130389Sle
35135426Sle/*
36130389Sle**	lib_clearok.c
37130389Sle**
38130389Sle**	The routine clearok.
39135426Sle**
40130389Sle*/
41130389Sle
42130389Sle#include <curses.priv.h>
43130389Sle
44135426SleMODULE_ID("$Id: lib_clearok.c,v 1.2 1998/02/11 12:14:00 tom Exp $")
45135426Sle
46130389Sleint clearok(WINDOW *win, bool flag)
47135426Sle{
48135426Sle	T((T_CALLED("clearok(%p,%d)"), win, flag));
49130389Sle
50130389Sle	if (win) {
51190507Slulf	  win->_clear = flag;
52190507Slulf	  returnCode(OK);
53135426Sle	}
54130389Sle	else
55130389Sle	  returnCode(ERR);
56}
57