Aktualizovat "program.c

This commit is contained in:
Michal Čabra 2019-10-25 11:04:40 +00:00
parent 6e7614f45d
commit ad58f81cd2

View File

@ -27,11 +27,10 @@ int compare_pizza(const void * left, const void * right) {
while(1){
if(a->name[i]=='\n' || b->name[i]=='\n'){
break;
}
else if(a->name[i]=='\r' || b->name[i]=='\r'){
}
else if(a->name[i]=='\r' || b->name[i]=='\r'){
break;
}
}
else if(a->name[i] > b->name[i]){
return 1;
}
@ -40,7 +39,7 @@ int compare_pizza(const void * left, const void * right) {
}
}
return -1;
return 0;
}
}