Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 12 Nov 2011 21:42:07 -0600 Message-ID: <4EBF3C93.11EB@mindspring.com> Date: Sat, 12 Nov 2011 22:42:11 -0500 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: qsort References: <4ebd2a87$0$19698$bbae4d71@news.suddenlink.net> <4EBDCB7A.2B15@mindspring.com> <4ebf0af7$0$19698$bbae4d71@news.suddenlink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 20 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.216.216 X-Trace: sv3-61yS/lzkMQQYeJNcKXy1iiUsb7ERL5+3XTmznNBLfwV9nNBJ4+X20rUwzeuLHtSRr2p8Kb+FD8ds1wt!CfTY/dGA8eWp7xsmAJsW419AnnCHGtIblpgv7GwEopge7pH0wJ9NjiIgksKvXRxkJ0bcGxkE7hWc!mIPry1OytSQ= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1458 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:13228 Bill Cunningham wrote: > > pete wrote: > > return *aa > *bb ? -1 : *aa != *bb; > > Can you show me that for loop that's not in shorthand? > This is kind of hard to read. if (*aa > *bb) { return -1; } else { if (*aa != *bb) { return 1; } else { return 0; } } -- pete