Initializacia

This commit is contained in:
Kozar 2024-10-02 16:57:36 +00:00
parent d0d1dc2420
commit 2eb10876da

View File

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