From 2eb10876da7fe90368e3e647ba6d4979097c0719 Mon Sep 17 00:00:00 2001 From: Kozar Date: Wed, 2 Oct 2024 16:57:36 +0000 Subject: [PATCH] Initializacia --- cv1/program.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 601e9d4..c3fca68 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -64,18 +64,15 @@ int main() { int count = 0; printf("Zadaj hladanu surovinu:\n"); - fgets(search, LINESIZE, stdin); search[strcspn(search, "\n")] = '\0'; printf("Zadaj jedalny listok:\n"); - while (read_pizza(&menu[count])) { count++; } printf("\nVysledky vyhladavania:\n"); - int found_count = 0; for (int i = 0; i < count; i++) { if (contains_normalized(menu[i].name, search)) {