From 3001fcb96284b7b29c87fc6a811e7c46c302fbf9 Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Tue, 6 Apr 2021 14:50:38 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index 680ba77..1d68f2c 100644 --- a/du5/program.c +++ b/du5/program.c @@ -63,9 +63,10 @@ int main() { counter = 0; memset(number1, '\0', 25); memset(name, '\0', 25); + if (symbol == '\n') break; symbol = inputs[i][counter++]; while(symbol != '\0' && symbol != '\n'){ - while(isspace(symbol)) + if(isspace(symbol) && isdigit(inputs[i][counter-2])) symbol = inputs[i][counter++]; if(isdigit(symbol)) {