Initialization

This commit is contained in:
Kozar 2024-03-21 17:36:50 +01:00
parent 3c8d18c1d0
commit e8c5562217

View File

@ -46,10 +46,11 @@ int main() {
char name[SIZE]; char name[SIZE];
if (sscanf(line, "%d %[^\n]", &votes, name) != 2) { if (sscanf(line, "%d %[^\n]", &votes, name) != 2) {
if (successful_lines >= 1){ if (successful_lines >= 1){
break; continue;
} }
else{ else{
printf("Nepodarilo nacitat nic"); printf("Nepodarilo nacitat nic\n");
break;
} }
} }