Initialization

This commit is contained in:
Kozar 2024-04-25 17:35:17 +02:00
parent 08fef112f0
commit f06f7126b3

View File

@ -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) {