Mercurial > mxe-octave
annotate src/libarchive-test.c @ 2333:f653602a0500
Rebrand to new project name MXE
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 28 Mar 2012 15:46:58 +0200 |
parents | ae7bf5ed7620 |
children | 8a6c466753e2 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1064
diff
changeset
|
1 /* This file is part of MXE. */ |
1064
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 /* See doc/index.html for further information. */ |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 #include <archive.h> |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 int main(int argc, char *argv[]) |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 { |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 struct archive *tgz; |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 (void)argc; |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 (void)argv; |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 tgz = archive_write_new(); |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 archive_write_set_compression_gzip(tgz); |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 archive_write_set_format_ustar(tgz); |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 archive_write_finish(tgz); |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 return 0; |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 } |