Initialization

This commit is contained in:
Kozar 2024-04-25 17:37:53 +02:00
parent f06f7126b3
commit 6c24ae9803

View File

@ -40,10 +40,13 @@ int main() {
num_accepted++;
}
num_students++;
// Check if we have reached the maximum number of accepted students
if (num_accepted == max_students) {
break; // Exit the loop
}
}
names[num_accepted][0] = '\0';
qsort(names, num_accepted, sizeof(char*) * NAME_SIZE, compare_names);
if (num_accepted == 0) {
@ -56,4 +59,4 @@ int main() {
}
return 0;
}
}