From 70ce17da57e23386c51e57f24856dc478a244a43 Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 22 Apr 2024 17:43:31 +0200 Subject: [PATCH] Initialization --- cv10/program.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cv10/program.c b/cv10/program.c index 87aa26c..78ac48e 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -15,11 +15,9 @@ int main() { return 1; } - // Initialize the names array to all-zero strings memset(names, 0, sizeof(names)); while (fgets(temp_name, sizeof(temp_name), stdin) != NULL && num_accepted < max_students) { - // Remove newline character from temp_name int i, found = 0; @@ -42,9 +40,6 @@ int main() { printf("Prijati studenti:\n"); for (int i = 0; i < num_accepted; i++) { printf("%s", names[i]); - if (i < num_accepted - 1) { - printf("\n"); - } } }