From d086c25b5c0537426d94a9b7402cd0b4edda664f Mon Sep 17 00:00:00 2001 From: Bohdan Kapliuk Date: Sun, 12 Jan 2025 16:15:15 +0200 Subject: [PATCH] sk1 --- sk1/main.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/sk1/main.c b/sk1/main.c index ce0e398..c1f9f3f 100644 --- a/sk1/main.c +++ b/sk1/main.c @@ -35,28 +35,12 @@ int main(int argc, char* argv[]) { if (strcmp(argv[1], "-c") == 0) { result = compress_1(input_file, output_file); - if (result < 0) { - fprintf(stderr, "Chyba: Kompresia zlyhala.\n"); - return 1; - } } else if (strcmp(argv[1], "-d") == 0) { result = decompress_1(input_file, output_file); - if (result < 0) { - fprintf(stderr, "Chyba: Dekompresia zlyhala.\n"); - return 1; - } } else if (strcmp(argv[1], "-c2") == 0) { result = compress_2(input_file, output_file); - if (result < 0) { - fprintf(stderr, "Chyba: Kompresia zlyhala.\n"); - return 1; - } } else if (strcmp(argv[1], "-d2") == 0) { result = decompress_2(input_file, output_file); - if (result < 0) { - fprintf(stderr, "Chyba: Dekompresia zlyhala.\n"); - return 1; - } } else { fprintf(stderr, "Chyba: Neznamy argument. Použite -h pre zobrazenie pomoci.\n"); return 1;