diff --git a/du6/program.c b/du6/program.c index 9c792aa..3259444 100644 --- a/du6/program.c +++ b/du6/program.c @@ -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;