blob: 8bbd7f6f5f23b74f9d24cbbc91ee4c76e9827b30 [file] [log] [blame]
Thomas Klausnerc8cb9982014-10-30 15:21:18 +01001.\" zip_error_clear.mdoc -- clear error state for archive or file
2.\" Copyright (C) 2006-2014 Dieter Baron and Thomas Klausner
Thomas Klausner38069892006-10-04 18:31:09 +00003.\"
4.\" This file is part of libzip, a library to manipulate ZIP archives.
Dieter Baronb86c4332007-11-07 14:35:13 +01005.\" The authors can be contacted at <libzip@nih.at>
Thomas Klausner38069892006-10-04 18:31:09 +00006.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\" notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\" notice, this list of conditions and the following disclaimer in
14.\" the documentation and/or other materials provided with the
15.\" distribution.
16.\" 3. The names of the authors may not be used to endorse or promote
17.\" products derived from this software without specific prior
18.\" written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
21.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
24.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
26.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
28.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
30.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31.\"
Thomas Klausnerc8cb9982014-10-30 15:21:18 +010032.Dd October 30, 2014
33.Dt ZIP_ERROR_CLEAR 3
Thomas Klausner38069892006-10-04 18:31:09 +000034.Os
35.Sh NAME
36.Nm zip_error_clear ,
37.Nm zip_file_error_clear
38.Nd clear error state for archive or file
39.Sh LIBRARY
40libzip (-lzip)
41.Sh SYNOPSIS
42.In zip.h
43.Ft void
Dieter Baron1d9dfeb2014-09-28 23:02:54 +020044.Fn zip_error_clear "zip_t *archive"
Thomas Klausner38069892006-10-04 18:31:09 +000045.Ft void
Dieter Baron1d9dfeb2014-09-28 23:02:54 +020046.Fn zip_file_error_clear "zip_file_t *file"
Thomas Klausner38069892006-10-04 18:31:09 +000047.Sh DESCRIPTION
48The
49.Fn zip_error_clear
50function clears the error state for the zip archive
51.Ar archive .
52.Pp
53The
54.Fn zip_file_error_clear
55function does the same for the zip file
56.Ar file .
57.Sh SEE ALSO
58.Xr libzip 3 ,
59.Xr zip_error_get 3
Thomas Klausner0f3bbd62017-12-18 17:39:22 +010060.Sh HISTORY
61.Fn zip_error_clear
62and
63.Fn zip_file_error_clear
64were added in libzip 0.8.
Thomas Klausner38069892006-10-04 18:31:09 +000065.Sh AUTHORS
66.An -nosplit
Thomas Klausner0acbab42013-07-28 23:29:08 +020067.An Dieter Baron Aq Mt dillo@nih.at
Thomas Klausner38069892006-10-04 18:31:09 +000068and
Thomas Klausner0acbab42013-07-28 23:29:08 +020069.An Thomas Klausner Aq Mt tk@giga.or.at