Initialization
This commit is contained in:
parent
41c80d8829
commit
3ea86f6735
@ -38,8 +38,13 @@ int main() {
|
||||
// check if the line is empty
|
||||
if (r == NULL || (r[0] == '\n' && strlen(r) == 1)) {
|
||||
// end of input
|
||||
if (successful_lines == 0) {
|
||||
printf("Nepodarilo nacitat nic\n");
|
||||
return 0;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// parse the string and extract number of votes and student name
|
||||
int votes;
|
||||
|
Loading…
Reference in New Issue
Block a user