File: zipstruct.c

package info (click to toggle)
node-yarnpkg 4.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,752 kB
  • sloc: javascript: 38,953; ansic: 26,035; cpp: 7,247; sh: 2,829; makefile: 724; perl: 493
file content (51 lines) | stat: -rw-r--r-- 848 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <stdlib.h>
#include <string.h>
#include <zip.h>

struct zip_stat * zipstruct_statS(void)
{
    static struct zip_stat stat;

    memset(&stat, 0, sizeof(stat));

    return &stat;
}

unsigned int zipstruct_stat_size(struct zip_stat * st)
{
    return st->size;
}

unsigned int zipstruct_stat_mtime(struct zip_stat * st)
{
    return st->mtime;
}

unsigned int zipstruct_stat_crc(struct zip_stat * st)
{
    return st->crc;
}

struct zip_error * zipstruct_errorS(void)
{
    static struct zip_error error;

    memset(&error, 0, sizeof(error));

    return &error;
}

int zipstruct_error_code_zip(struct zip_error * error)
{
    return error->zip_err;
}

unsigned int zipstruct_stat_comp_size(struct zip_stat * st)
{
    return st->comp_size;
}

unsigned int zipstruct_stat_comp_method(struct zip_stat * st)
{
    return st->comp_method;
}