Aktualizovat a3/program.c
This commit is contained in:
parent
2e3c118fec
commit
73b13be634
@ -77,8 +77,8 @@ int compare(const void* p1, const void* p2)
|
||||
{
|
||||
//casting, resp. premena dat. typu pointerov na ich spravny typ
|
||||
//nakolko qsort() pozaduje od porovnavaciej funkcie, aby akceptovala pointery s lubovolnym dat. typom (const void*)
|
||||
struct studentsApplication *s1 = (struct studentsApplication *)p1;
|
||||
struct studentsApplication *s2 = (struct studentsApplication *)p2;
|
||||
struct studentApplication *s1 = (struct studentApplication *)p1;
|
||||
struct studentApplication *s2 = (struct studentApplication *)p2;
|
||||
|
||||
return strcmp(s1->name, s2->name);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user