<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
<title>ZIP_ERROR_SET(3)</title>
</head>
<body>
<table class="head">
<tr>
<td class="head-ltitle">ZIP_ERROR_SET(3)</td>
<td class="head-vol">Library Functions Manual</td>
<td class="head-rtitle">ZIP_ERROR_SET(3)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">zip_error_set</code> —
<span class="Nd">fill in zip_error structure</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
<p class="Pp">libzip (-lzip)</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="In">#include
<<a class="In">zip.h</a>></code></p>
<p class="Pp"><var class="Ft">void</var>
<br/>
<code class="Fn">zip_error_set</code>(<var class="Fa" style="white-space: nowrap;">zip_error_t
*ze</var>, <var class="Fa" style="white-space: nowrap;">int le</var>,
<var class="Fa" style="white-space: nowrap;">int se</var>);</p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The
<a class="permalink" href="#zip_error_set"><code class="Fn" id="zip_error_set">zip_error_set</code></a>()
function sets the zip_error pointed to by <var class="Ar">ze</var> to the
libzip error code <var class="Ar">le</var> and the system error code
<var class="Ar">se</var>.</p>
<p class="Pp" id="zip_error_set~2"><var class="Ar">ze</var> must be allocated
and initialized with
<a class="Xr" href="zip_error_init.html">zip_error_init(3)</a> before
calling
<a class="permalink" href="#zip_error_set~2"><code class="Fn">zip_error_set</code></a>().</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><a class="Xr" href="libzip.html">libzip(3)</a>,
<a class="Xr" href="zip_error_init.html">zip_error_init(3)</a>,
<a class="Xr" href="zip_error_set_from_source.html">zip_error_set_from_source(3)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp"><code class="Fn">zip_error_set</code>() was added in libzip
1.0.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
<p class="Pp"><span class="An">Dieter Baron</span>
<<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>> and
<span class="An">Thomas Klausner</span>
<<a class="Mt" href="mailto:wiz@gatalith.at">wiz@gatalith.at</a>></p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">December 5, 2022</td>
<td class="foot-os">NiH</td>
</tr>
</table>
</body>
</html>