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