blob: 35c46dd646bbd79b51b8bad5d12e6147c6f35ee6 [file] [log] [blame]
.TH "ZIP_ERROR_SET" "3" "December 18, 2017" "NiH" "Library Functions Manual"
.nh
.if n .ad l
.SH "NAME"
\fBzip_error_set\fR
\- fill in zip_error structure
.SH "LIBRARY"
libzip (-lzip)
.SH "SYNOPSIS"
\fB#include <zip.h>\fR
.sp
\fIvoid\fR
.br
.PD 0
.HP 4n
\fBzip_error_set\fR(\fIzip_error_t\ *ze\fR, \fIint\ le\fR, \fIint\ se\fR);
.PD
.SH "DESCRIPTION"
The
\fBzip_error_set\fR()
function sets the zip_error pointed to by
\fIze\fR
to the libzip error code
\fIle\fR
and the system error code
\fIse\fR.
.PP
\fIze\fR
must be allocated and initialized with
zip_error_fini(3)
before calling
\fBzip_error\fR(\fIset\fR).
.SH "SEE ALSO"
libzip(3),
zip_error_init(3)
.SH "HISTORY"
\fBzip_error_set\fR()
was added in libzip 1.0.
.SH "AUTHORS"
Dieter Baron <\fIdillo@nih.at\fR>
and
Thomas Klausner <\fItk@giga.or.at\fR>