Initializacia

This commit is contained in:
Kozar 2024-10-02 18:33:43 +00:00
parent ec266a099f
commit e913bf53ed

View File

@ -32,6 +32,7 @@ int main() {
// Read the menu items // Read the menu items
while (1) { while (1) {
printf("Zadaj jedalny listok: "); // Print the prompt for each menu item
fgets(menu_item, MAX_INPUT_LENGTH, stdin); fgets(menu_item, MAX_INPUT_LENGTH, stdin);
if (feof(stdin) || strlen(menu_item) == 1) { if (feof(stdin) || strlen(menu_item) == 1) {
break; break;