2012-03-29 11:01:39 +01:00
|
|
|
/*
|
2016-08-22 20:52:34 +01:00
|
|
|
* This file is part of MXE. See LICENSE.md for licensing information.
|
2012-03-29 11:01:39 +01:00
|
|
|
*/
|
2010-06-15 17:36:52 +01:00
|
|
|
|
|
|
|
#include <archive.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
struct archive *tgz;
|
2017-08-13 04:20:13 +01:00
|
|
|
struct archive *zip;
|
2010-06-15 17:36:52 +01:00
|
|
|
|
|
|
|
(void)argc;
|
|
|
|
(void)argv;
|
|
|
|
|
|
|
|
tgz = archive_write_new();
|
2014-04-10 18:56:12 +01:00
|
|
|
archive_write_set_options(tgz, "gzip=9");
|
2010-06-15 17:36:52 +01:00
|
|
|
archive_write_set_format_ustar(tgz);
|
2014-04-10 18:56:12 +01:00
|
|
|
archive_write_free(tgz);
|
2010-06-15 17:36:52 +01:00
|
|
|
|
2017-08-13 04:20:13 +01:00
|
|
|
zip = archive_read_new();
|
|
|
|
archive_read_support_format_zip(zip);
|
|
|
|
|
2010-06-15 17:36:52 +01:00
|
|
|
return 0;
|
|
|
|
}
|