Initializacia
This commit is contained in:
parent
d0d1dc2420
commit
2eb10876da
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user