From 69f285e2d199f0fc0bd971c3936232001a6f5ca2 Mon Sep 17 00:00:00 2001 From: Yevhen Kozirovskyi Date: Wed, 2 Oct 2024 16:51:23 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20cv1/program.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 7c0a0a2..508218c 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -29,9 +29,9 @@ int main() { if (fgets(ingredient, MAX_NAME_LEN, stdin) == NULL) { return 0; } - ingredient[strcspn(ingredient, "\n")] = '\0'; - printf("Zadaj jedalny listok: \n"); + + printf("Zadaj jedalny listok:\n"); while (1) { char name[MAX_NAME_LEN], price[MAX_NAME_LEN]; @@ -75,4 +75,3 @@ int main() { printf("Nacitanych %d poloziek.\n", count); return 0; } -