6bd026a582294015530b3a89fc27e7507985a200
[platform/upstream/libzip.git] / man / zip_source_commit_write.man
1 .TH "ZIP_SOURCE_COMMIT_WRITE" "3" "November 18, 2014" "NiH" "Library Functions Manual"
2 .nh
3 .if n .ad l
4 .SH "NAME"
5 \fBzip_source_commit_write\fR
6 \- finalize changes to zip source
7 .SH "LIBRARY"
8 libzip (-lzip)
9 .SH "SYNOPSIS"
10 \fB#include <zip.h>\fR
11 .sp
12 \fIint\fR
13 .PD 0
14 .HP 4n
15 \fBzip_source_commit_write\fR(\fIzip_source_t\ *source\fR);
16 .PD
17 .SH "DESCRIPTION"
18 The function
19 \fBzip_source_commit_write\fR()
20 finishes writing data to
21 \fIsource\fR
22 and replaces the original with the newly written data.
23 .SH "RETURN VALUES"
24 Upon successful completion 0 is returned.
25 Otherwise, \-1 is returned and the error information in
26 \fIsource\fR
27 is set to indicate the error.
28 .SH "SEE ALSO"
29 libzip(3),
30 zip_source(3),
31 zip_source_begin_write(3),
32 zip_source_rollback_write(3),
33 zip_source_seek_write(3),
34 zip_source_tell_write(3),
35 zip_source_write(3)
36 .SH "AUTHORS"
37 Dieter Baron <\fIdillo@nih.at\fR>
38 and
39 Thomas Klausner <\fItk@giga.or.at\fR>