From f06f7126b37518e5a933e8fe3003ba0f2d6ee4fd Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 25 Apr 2024 17:35:17 +0200 Subject: [PATCH] Initialization --- cv10/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv10/program.c b/cv10/program.c index 387e704..9776b0e 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -42,7 +42,8 @@ int main() { num_students++; } - // sort the names by alphabet + names[num_accepted][0] = '\0'; + qsort(names, num_accepted, sizeof(char*) * NAME_SIZE, compare_names); if (num_accepted == 0) {