mxe/src/libarchive-test.c

25 lines
457 B
C
Raw Normal View History

/*
* 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();
2014-04-10 18:56:12 +01:00
archive_write_set_options(tgz, "gzip=9");
archive_write_set_format_ustar(tgz);
2014-04-10 18:56:12 +01:00
archive_write_free(tgz);
zip = archive_read_new();
archive_read_support_format_zip(zip);
return 0;
}