X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=examples%2Fcompressfile.c;h=bc7ed18ab5d8df1079a20ae2b2f11cc22c430a82;hb=4169b7d1888f88f2c0180e2c675461acfadaccc0;hp=824165db0ec660259bbb9b9dcb8843f27414b514;hpb=c3a1bd96026fd5a1d43c5f6178f9f0165afdd098;p=wimlib diff --git a/examples/compressfile.c b/examples/compressfile.c index 824165db..bc7ed18a 100644 --- a/examples/compressfile.c +++ b/examples/compressfile.c @@ -1,7 +1,25 @@ /* - * compressfile.c + * compressfile.c - compression API example * - * An example of using wimlib's compression API to compress a file. + * The following copying information applies to this specific source code file: + * + * Written in 2014 by Eric Biggers + * + * To the extent possible under law, the author(s) have dedicated all copyright + * and related and neighboring rights to this software to the public domain + * worldwide via the Creative Commons Zero 1.0 Universal Public Domain + * Dedication (the "CC0"). + * + * This software is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the CC0 for more details. + * + * You should have received a copy of the CC0 along with this software; if not + * see . + */ + +/* + * This an example of using wimlib's compression API to compress a file. * * This program does *not* have anything to do with WIM files other than the * fact that this makes use of compression formats that are used in WIM files. @@ -143,7 +161,7 @@ int main(int argc, char **argv) /* Create a compressor for the compression type and chunk size with the * default parameters. */ - ret = wimlib_create_compressor(ctype, chunk_size, NULL, &compressor); + ret = wimlib_create_compressor(ctype, chunk_size, 0, &compressor); if (ret != 0) error(1, 0, "Failed to create compressor: %s", wimlib_get_error_string(ret));