Initialization
This commit is contained in:
parent
3ed02a3922
commit
7760084e5a
@ -50,15 +50,16 @@ int main() {
|
|||||||
// Sort the applications alphabetically
|
// Sort the applications alphabetically
|
||||||
qsort(applications, i, sizeof(char *), compare_names);
|
qsort(applications, i, sizeof(char *), compare_names);
|
||||||
|
|
||||||
printf("Prijati studenti:");
|
printf("Prijati studenti:\n");
|
||||||
j = 0;
|
for (j = 0; j < i; j++) {
|
||||||
while (j < i) {
|
|
||||||
printf("%s\n", applications[j]);
|
printf("%s\n", applications[j]);
|
||||||
j++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count < i) {
|
if (count < i) {
|
||||||
printf("Neprijati studenti:\n");
|
printf("Neprijati studenti:\n");
|
||||||
|
for (; j < i; j++) {
|
||||||
|
printf("%s\n", applications[j]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Free allocated memory
|
// Free allocated memory
|
||||||
|
Loading…
Reference in New Issue
Block a user