From d36ee9900cebbc438ef00663598af3604b19ad19 Mon Sep 17 00:00:00 2001 From: Yevhen Kozirovskyi Date: Tue, 1 Oct 2024 22:05:42 +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 aa9e0b0..e155c13 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -28,10 +28,9 @@ int main() { char dishes[MAX_DISHES][2][MAX_NAME_LEN]; int count = 0; - printf("Zadaj hladanu surovinu: "); + printf("Zadaj hladanu surovinu:"); if (fgets(ingredient, MAX_NAME_LEN, stdin) == NULL) { - fprintf(stderr, "Ошибка чтения ингредиента.\n"); - return 1; // Обработка ошибки + return 0; // Обработка ошибки } ingredient[strcspn(ingredient, "\n")] = '\0';