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