blob: b4809a164dfc08f5c0cb92bd0492afc0afd4c147 [file] [log] [blame]
Thomas Klausner39b5f9e2005-06-09 21:14:54 +00001.\" $NiH: zip_fclose.mdoc,v 1.8 2005/06/09 21:13:12 wiz Exp $
Dieter Baron33aae772003-10-03 11:53:47 +00002.\"
3.\" zip_fclose.mdoc -- close file in zip archive
Thomas Klausnerbe31d742005-06-09 19:51:23 +00004.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner
Dieter Baron33aae772003-10-03 11:53:47 +00005.\"
6.\" This file is part of libzip, a library to manipulate ZIP archives.
7.\" The authors can be contacted at <nih@giga.or.at>
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\" notice, this list of conditions and the following disclaimer in
16.\" the documentation and/or other materials provided with the
17.\" distribution.
18.\" 3. The names of the authors may not be used to endorse or promote
19.\" products derived from this software without specific prior
20.\" written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
23.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
26.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
28.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
30.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
31.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
32.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33.\"
34.Dd October 3, 2003
35.Dt ZIP_FCLOSE 3
36.Os
37.Sh NAME
38.Nm zip_fclose
39.Nd close file in zip archive
40.Sh LIBRARY
Dieter Baronff551f12003-10-03 12:04:09 +000041libzip (-lzip)
Dieter Baron33aae772003-10-03 11:53:47 +000042.Sh SYNOPSIS
43.In zip.h
44.Ft int
45.Fn zip_fclose "struct zip_file *file"
46.Sh DESCRIPTION
47The
48.Fn zip_fclose
49function closes
50.Ar file
51and frees the memory allocated for it.
52.Sh RETURN VALUES
53Upon successful completion 0 is returned.
Thomas Klausner1431a4c2004-11-30 22:26:56 +000054Otherwise, the error code is returned.
Dieter Baron33aae772003-10-03 11:53:47 +000055.Sh SEE ALSO
Thomas Klausnerbec1cfe2005-06-09 18:50:27 +000056.Xr libzip 3 ,
Dieter Baron33aae772003-10-03 11:53:47 +000057.Xr zip_fopen 3 ,
Thomas Klausner6769afc2003-10-03 23:40:00 +000058.Xr zip_fread 3
Thomas Klausnera456cf52005-06-09 21:13:13 +000059.Sh AUTHORS
60.An -nosplit
61.An Dieter Baron Aq dillo@giga.or.at
Thomas Klausner39b5f9e2005-06-09 21:14:54 +000062and
Thomas Klausnera456cf52005-06-09 21:13:13 +000063.An Thomas Klausner Aq tk@giga.or.at