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"); - } } }