.\"##
.\" $XConsortium: p017,v 5.2 94/04/17 20:54:23 rws Exp $
.\"##
.\"## 
$XMCOPY
.\"## Copyright (c) 1990, 1991 by Sun Microsystems, Inc. 
.\"## 
.\"##                         All Rights Reserved
.\"## 
.\"## Permission to use, copy, modify, and distribute this software and its 
.\"## documentation for any purpose and without fee is hereby granted, 
.\"## provided that the above copyright notice appear in all copies and that
.\"## both that copyright notice and this permission notice appear in 
.\"## supporting documentation, and that the name of Sun Microsystems,
.\"## not be used in advertising or publicity 
.\"## pertaining to distribution of the software without specific, written 
.\"## prior permission.  
.\"## 
.\"## SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
.\"## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
.\"## EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
.\"## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
.\"## USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
.\"## OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\"## PERFORMANCE OF THIS SOFTWARE.
.TH "CLOSE ARCHIVE FILE" 3P "29 February 1991"
.SH NAME
CLOSE ARCHIVE FILE -\ close named archive file
.IX "Archive Files" "CLOSE ARCHIVE FILE"
.SH SYNOPSIS
.SS C Syntax
.ft B
.ta 1.25i 3i
.nf
void
pclose_ar_file ( archive_id )
Pint	archive_id;	\fIarchive identifier\fP
.fi
.ft R
.SS Required PHIGS Operating States
(PHOP, *, *, AROP)
.SH DESCRIPTION
.SS Purpose
Use \s-2CLOSE ARCHIVE FILE\s+2 to close an archive file.
.SS C Input Parameter
.IP \fIarchive_id\fP
An integer identifying the archive file to be closed.
.SS Execution
If the archive associated with the specified archive file identifier has
changed since it was opened, it is written to the file and the file is closed.  
If no changes were made, the file will be closed without being rewritten.  
.LP
The archive file identifier is disassociated with the file it referred
to and removed from the set of open archive files 
maintained in the \s-2PHIGS\s+2 state list.  
The \s-2PHIGS\s+2 archive state is changed to archive closed (\s-2ARCL\s+2)
if no other archive files are open.  
.SH ERRORS
.IP 007
Ignoring function, function requires state 
(\s-2PHOP\s+2, \s-2*\s+2, \s-2*\s+2, \s-2AROP\s+2)
.IP 404
Ignoring function, the specified archive file is not open
.SH SEE ALSO
.nf
.IP
.ta 0.5i
.SM "INQUIRE ARCHIVE FILES (3P)"
.SM "INQUIRE ARCHIVE STATE VALUE (3P)"
.SM "OPEN ARCHIVE FILE (3P)"
.fi
