From 969442f6e7ffc915346ee316d7845dfe12e655c6 Mon Sep 17 00:00:00 2001 From: Kozar Date: Wed, 2 Oct 2024 17:03:28 +0000 Subject: [PATCH] Initializacia --- cv1/program.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cv1/program.c b/cv1/program.c index 4a2305f..be31ec9 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -67,6 +67,10 @@ int main() { fgets(search, LINESIZE, stdin); search[strcspn(search, "\n")] = '\0'; + for (int i = 0; search[i]; i++) { + search[i] = tolower(search[i]); + } + printf("Zadaj jedalny listok:\n"); while (read_pizza(&menu[count])) { count++;