diff --git a/cv3/program.c b/cv3/program.c index 1f1e19a..251026c 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -42,7 +42,7 @@ int main() { StEk stek; inicStEk(&stek); char bufer[256]; - while (fgets(bufer, sizeof(bufer), stdin)) { + while (fgets(bufer, sizeof(bufer), stdin) != NULL) { char* konec; double chislo = strtod(bufer, &konec); if (*konec == '\n' && *bufer != '\n' && *bufer != ' ') { @@ -104,5 +104,6 @@ int main() { } printf("\n"); } + printf("no input\n"); return 0; } \ No newline at end of file