summaryrefslogtreecommitdiffstats
path: root/src/libarchive-test.c
blob: df42857a66d03802f1ed4803211171c6532fc96a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * This file is part of MXE. See LICENSE.md for licensing information.
 */

#include <archive.h>

int main(int argc, char *argv[])
{
    struct archive *tgz;
    struct archive *zip;

    (void)argc;
    (void)argv;

    tgz = archive_write_new();
    archive_write_set_options(tgz, "gzip=9");
    archive_write_set_format_ustar(tgz);
    archive_write_free(tgz);

    zip = archive_read_new();
    archive_read_support_format_zip(zip);

    return 0;
}