2
$NiH: zip_stat_init.c,v 1.1 2006/10/31 12:03:04 dillo Exp $
4
zip_stat_init.c -- initialize struct zip_stat.
5
Copyright (C) 2006 Dieter Baron and Thomas Klausner
7
This file is part of libzip, a library to manipulate ZIP archives.
8
The authors can be contacted at <nih@giga.or.at>
10
Redistribution and use in source and binary forms, with or without
11
modification, are permitted provided that the following conditions
13
1. Redistributions of source code must retain the above copyright
14
notice, this list of conditions and the following disclaimer.
15
2. Redistributions in binary form must reproduce the above copyright
16
notice, this list of conditions and the following disclaimer in
17
the documentation and/or other materials provided with the
19
3. The names of the authors may not be used to endorse or promote
20
products derived from this software without specific prior
23
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
24
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
27
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
29
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
31
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
33
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43
zip_stat_init(struct zip_stat *st)
48
st->mtime = (time_t)-1;
51
st->comp_method = ZIP_CM_STORE;
52
st->encryption_method = ZIP_EM_NONE;