Aktualizovat du2/program.c
This commit is contained in:
parent
ca335682a6
commit
9e12e162db
@ -79,21 +79,18 @@ int compare (const void * a, const void * b)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else if (r<0)
|
||||
if (r<0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
int r2=strcmp(name_a,name_b);
|
||||
if (r2>0)
|
||||
{
|
||||
int r2=strcmp(name_a,name_b);
|
||||
if (r2>0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else if (r2<0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
if (r2<0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user