Imported Upstream version 1.1.1
[platform/upstream/libzip.git] / man / zip_source_free.man
1 .TH "ZIP_SOURCE_FREE" "3" "November 18, 2014" "NiH" "Library Functions Manual"
2 .nh
3 .if n .ad l
4 .SH "NAME"
5 \fBzip_source_free\fR
6 \- free zip data source
7 .SH "LIBRARY"
8 libzip (-lzip)
9 .SH "SYNOPSIS"
10 \fB#include <zip.h>\fR
11 .sp
12 \fIvoid\fR
13 .PD 0
14 .HP 4n
15 \fBzip_source_free\fR(\fIzip_source_t\ *source\fR);
16 .PD
17 .SH "DESCRIPTION"
18 The function
19 \fBzip_source_free\fR()
20 decrements the reference count of
21 \fIsource\fR
22 and frees it if the reference count drops to 0.
23 If
24 \fIsource\fR
25 is
26 \fRNULL\fR,
27 it does nothing.
28 .PP
29 \fINOTE\fR:
30 This function should not be called on a
31 \fIsource\fR
32 after it was used successfully in a
33 zip_open_from_source(3),
34 zip_add(3),
35 or
36 zip_replace(3)
37 call.
38 .SH "SEE ALSO"
39 libzip(3),
40 zip_source(3),
41 zip_source_keep(3)
42 .SH "AUTHORS"
43 Dieter Baron <\fIdillo@nih.at\fR>
44 and
45 Thomas Klausner <\fItk@giga.or.at\fR>