From 568798e80341682a4fa45fcf403dbd8973a64bb8 Mon Sep 17 00:00:00 2001 From: kr820js Date: Sat, 16 Mar 2024 20:58:58 +0100 Subject: [PATCH] submit7 --- cv5/program.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cv5/program.c b/cv5/program.c index d1650d5..9a578be 100644 --- a/cv5/program.c +++ b/cv5/program.c @@ -22,6 +22,10 @@ int main() int size = 0; while(loading_the_entire_line_from_standard_input_into_the_helper_field_and_verify_that_i_have_loaded_it_correctly(databaza,&size)){ } + if(size==0){ + printf("Nepodarilo nacitat nic\n"); + return 0; + } int element_size=SIZE+sizeof(int); qsort((void *)databaza, size,element_size,compar); printf("Vysledky:\n");