Aktualizovat „du6/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-16 08:21:51 +00:00
parent 8751183000
commit a2e7bf1ba3

View File

@ -39,10 +39,7 @@ int main()
//char r; //char r;
while (fgets(line,wSIZE,stdin)) { while (fgets(line,wSIZE,stdin)) {
if((line[0] == '\n' || isalpha(line[0])!=0 ) && antiInfC == 1) {
break;
}
antiInfC++;
// if (r == '\n') { // if (r == '\n') {
// break; // break;
// } // }
@ -65,6 +62,10 @@ int main()
pole_smernikov[pm] = all; pole_smernikov[pm] = all;
pm++; pm++;
} }
if((line[0] == '\n' || isalpha(line[0])!=0 ) && antiInfC == 1) {
break;
}
antiInfC++;
} }
free(line); free(line);
k = 0; k = 0;
@ -89,6 +90,7 @@ int main()
// } // }
i++; i++;
} }
// printf("%s\n", pole_smernikov[0]);
if(NULL == pole_smernikov[1]){ if(NULL == pole_smernikov[1]){
puts("Ziadne prihlasky"); puts("Ziadne prihlasky");
return 0; return 0;