#include "compressor.h" #include #include static void help() { printf("Pouzitie:\n"); printf(" compressor -c infile outfile\n"); printf(" compressor -d infile outfile\n"); printf(" compressor -h\n"); } int main(int argc, char *argv[]) { if (argc < 2) { help(); return 0; } if (!strcmp(argv[1], "-c") && argc == 4) { compress_file(argv[2], argv[3]); } else if (!strcmp(argv[1], "-d") && argc == 4) { decompress_file(argv[2], argv[3]); } else { help(); } return 0; }