From 271e517175b3a60ec2e9fa8755ced1edbf1a9f0f Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Tue, 6 Apr 2021 15:24:36 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du5/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index 994efc5..8446c63 100644 --- a/du5/program.c +++ b/du5/program.c @@ -76,7 +76,7 @@ int main() { memset(number1, '\0', 25); memset(name, '\0', 25); symbol = inputs[i][counter++]; - if(symbol == '\n') break; + if(!isdigit(symbol)) break; while(symbol != '\0' && symbol != '\n'){ if(isspace(symbol) && isdigit(inputs[i][counter-2])) symbol = inputs[i][counter++];