Sort an integer array: Difference between revisions

→‎[[C]]: Fixed the variable name 'l' - who on earth uses 'l' for a variable? In a courier font it's almost indistinguishable from '1'
(→‎[[C]]: Fixed the variable name 'l' - who on earth uses 'l' for a variable? In a courier font it's almost indistinguishable from '1')
Line 63:
int intcmp(const void *i1, const void *i2)
{
int lleft = *(int *)i1, rright = *(int *)i2;
return lleft >= rright ? lleft > rright ? 1 : 0 : -1;
}
Anonymous user