Initialization
This commit is contained in:
parent
08fef112f0
commit
f06f7126b3
@ -42,7 +42,8 @@ int main() {
|
|||||||
num_students++;
|
num_students++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// sort the names by alphabet
|
names[num_accepted][0] = '\0';
|
||||||
|
|
||||||
qsort(names, num_accepted, sizeof(char*) * NAME_SIZE, compare_names);
|
qsort(names, num_accepted, sizeof(char*) * NAME_SIZE, compare_names);
|
||||||
|
|
||||||
if (num_accepted == 0) {
|
if (num_accepted == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user