Initializacia
This commit is contained in:
parent
05d60af8c2
commit
6a822d93c1
@ -64,11 +64,14 @@ int main() {
|
||||
int count = 0;
|
||||
|
||||
printf("Zadaj hladanu surovinu:\n");
|
||||
fgets(search, LINESIZE, stdin);
|
||||
if (!fgets(search, LINESIZE, stdin)) {
|
||||
printf("Error reading input.\n");
|
||||
return 1;
|
||||
}
|
||||
search[strcspn(search, "\n")] = '\0';
|
||||
|
||||
printf("Zadaj jedalny listok:\n");
|
||||
while (read_pizza(&menu[count])) {
|
||||
while (count < MENU_SIZE && read_pizza(&menu[count])) {
|
||||
count++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user