/*	Copyright (c) 1988 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

/*
 *      Copyright (c) 1997, by Sun Microsystems, Inc.
 *      All rights reserved.
 */

#pragma ident	"@(#)scr_all.c	1.7	97/06/25 SMI"	/* SVr4.0 1.3	*/

/*LINTLIBRARY*/

#include	<stdio.h>
#include	<sys/types.h>
#include	"curses_inc.h"

/* Set <screen> idea of the screen image to that stored in "file". */

int
_scr_all(char *file, int which)
{
	int	rv;
	FILE	*filep;

	if ((filep = fopen(file, "r")) == NULL)
		return (ERR);
	rv = scr_reset(filep, which);
	(void) fclose(filep);
	return (rv);
}
