From 2222e464b70779956886da9ac008a4c4b211dc24 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Thu, 7 Apr 2022 17:00:09 +0200 Subject: [PATCH] ds --- du5/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index 7c14ecf..b7829ad 100644 --- a/du5/program.c +++ b/du5/program.c @@ -33,7 +33,7 @@ int main(){ if (value == 0&&line[0]=='\n'){ // Premena sa nepodarila break; - }else if(value==0&&line[0]!='\n'&&size==0){ + }else if((value==0&&line[0]!='\n'&&size==0)||(size==0&&line==EOF)){ printf("Nepodarilo nacitat nic\n"); return 0; }