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");