From 652736208910f4d830753a3007c62f763ce59e1e Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 25 Apr 2024 17:52:18 +0200 Subject: [PATCH] Initialization --- cv10/program.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cv10/program.c b/cv10/program.c index 0635dcf..2203cfa 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -24,7 +24,7 @@ int main() { memset(names, 0, sizeof(names)); - while (fgets(temp_name, sizeof(temp_name), stdin)!= NULL && num_accepted < max_students) { + while (fgets(temp_name, sizeof(temp_name), stdin) != NULL && num_accepted < max_students) { int i, found = 0; @@ -43,9 +43,8 @@ int main() { } num_students++; - if (num_accepted == max_students) { - break; + break; } }