Aktualizovat a3/program.c

This commit is contained in:
Tomáš Vlček 2026-03-30 07:51:38 +00:00
parent 2e3c118fec
commit 73b13be634

View File

@ -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);
}