From 1b4ea58624c3055d39e626ae2b3a6d88741669e1 Mon Sep 17 00:00:00 2001 From: Vladyslav Korzun Date: Mon, 6 Mar 2023 17:40:52 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'du3/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/du3/program.c b/du3/program.c index 6154ff3..46c4a35 100644 --- a/du3/program.c +++ b/du3/program.c @@ -24,10 +24,10 @@ int main(){ break; } r = fgets(riadok,LINE_SIZE,stdin); - if(feof(stdin)){ + pos++; + if(feof(stdin)){ break; } - pos++; if (r == NULL || !isdigit(*r)) { //printf("%d", *r); if(*r == 10){