Manpages - archive_write_format.3
Streaming Archive Library (libarchive, -larchive)
These functions set the format that will be used for the archive.
The library can write a variety of common archive formats.
Sets the format based on the format code (see
for the full list of format codes). In particular, this can be used in conjunction with
to create a new archive with the same format as an existing archive.
Sets the corresponding format based on the common name.
Sets both filters and format based on the output filename. Supported extensions: .7z, .zip, .jar, .cpio, .iso, .a, .ar, .tar, .tgz, .tar.gz, .tar.bz2, .tar.xz
Set the format as specified. More details on the formats supported by libarchive can be found in the
manual page.
These functions return
on success, or
Detailed error codes and textual descriptions are available from the
and
functions.