diff --git a/cv1/program.c b/cv1/program.c index 7c0a0a2..508218c 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -29,9 +29,9 @@ int main() { if (fgets(ingredient, MAX_NAME_LEN, stdin) == NULL) { return 0; } - ingredient[strcspn(ingredient, "\n")] = '\0'; - printf("Zadaj jedalny listok: \n"); + + printf("Zadaj jedalny listok:\n"); while (1) { char name[MAX_NAME_LEN], price[MAX_NAME_LEN]; @@ -75,4 +75,3 @@ int main() { printf("Nacitanych %d poloziek.\n", count); return 0; } -