From a541a20d95e8421664990e46eee228535ccdd205 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 16 Apr 2020 14:37:55 +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'du6/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du6/program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/du6/program.c b/du6/program.c index a700c3b..4d6678f 100644 --- a/du6/program.c +++ b/du6/program.c @@ -35,6 +35,7 @@ char keep(struct LIS* list,int places){ int count=0; char names[100]; for(;fgets(names,100,stdin);){ + if(names[0]=='\n') continue; if(sscanf(names,"%s %s",list[count].fname,list[count].name)==2){ count++; if(places>=count){