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)) {