This commit is contained in:
Andrii Hermaniuk 2022-04-22 10:00:11 +02:00
parent dd6828435d
commit 8008adc2aa

View File

@ -17,8 +17,6 @@ int main(a){
getchar();
if(p<1){
printf("Nespravny vstup\n");
for(int i = 0;i<pocet_mien_v_poli;i++)
free(pole_smernikov[i]);
return 0;
}
@ -44,7 +42,9 @@ int main(a){
}
if(pocet_mien_v_poli==0){
printf("Ziadne prihlasky\n");
for(int i = 0;i<pocet_mien_v_poli;i++)
free(pole_smernikov[i]);
return 0;
}
qsort(pole_smernikov, pocet_mien_v_poli, sizeof(char*), compare);