From 5dbcaa2fb61ec329939116d1c117fab8a77ac806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Cabra?= Date: Fri, 25 Oct 2019 10:46:59 +0000 Subject: [PATCH] Aktualizovat "program.c --- program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program.c b/program.c index 3d5a7b4..0c88981 100644 --- a/program.c +++ b/program.c @@ -130,8 +130,8 @@ int read_item(struct pizza* item){ i=0; //printf("Comma %d\n",comma); //printf("Comma number %d\n",comma_number); - if(comma!=1)return 0; - if(comma_number!=2)return 0; + if(comma>1)return 0; + if(comma_number>2)return 0; float value = strtof(line2,NULL); if (value == 0.0F){ return 0;