2 * Copyright (c) 2003 Guido Draheim <guidod@gmx.de>
3 * Use freely under the restrictions of the ZLIB license.
5 * This file is used as an example to clarify zzip api usage.
6 * (the write-api is work in progress, beware)
9 #define _ZZIP_WRITE_SOURCE
11 #include <zzip/write.h>
14 #include "zzipmake-zip.h"
16 #ifdef ZZIP_HAVE_UNISTD_H
23 static const char usage[] =
25 "zzip <dir> files... \n"
26 " - zzip the files into a zip area."
30 main (int argc, char ** argv)
36 if (argc <= 1 || ! strcmp (argv[1], "--help"))
41 if (! strcmp (argv[1], "--version"))
43 # if defined _ZZIP_ENABLE_WRITE
44 printf (__FILE__ " version " ZZIP_PACKAGE_NAME " " ZZIP_PACKAGE_VERSION " - W/ -D_ZZIP_ENABLE_WRITE\n");
46 printf (__FILE__ " version " ZZIP_PACKAGE_NAME " " ZZIP_PACKAGE_VERSION " - NO -D_ZZIP_ENABLE_WRITE\n");
51 return rezzip_make(argc, argv);
56 * c-file-style: "stroustrup"