Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <4EBF3C93.11EB@mindspring.com> (permalink) |
|---|---|
| Date | 2011-11-12 22:42 -0500 |
| From | pete <pfiland@mindspring.com> |
| Organization | PF |
| 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> |
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
Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread
qsort "Bill Cunningham" <nospam@nspam.invalid> - 2011-11-11 09:00 -0500
Re: qsort Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-11-11 06:56 -0800
Re: qsort Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-11-11 16:39 +0000
Re: qsort 88888 Dihedral <dihedral88888@googlemail.com> - 2011-11-12 10:19 -0800
Re: qsort John Gordon <gordon@panix.com> - 2011-11-11 15:20 +0000
Re: qsort "Bill Cunningham" <nospam@nspam.invalid> - 2011-11-11 14:22 -0500
Re: qsort pete <pfiland@mindspring.com> - 2011-11-11 20:27 -0500
Re: qsort "Bill Cunningham" <nospam@nspam.invalid> - 2011-11-12 19:10 -0500
Re: qsort Keith Thompson <kst-u@mib.org> - 2011-11-12 16:40 -0800
Re: qsort "Bill Cunningham" <nospam@nspam.invalid> - 2011-11-13 01:39 -0500
Re: qsort Ian Collins <ian-news@hotmail.com> - 2011-11-13 19:51 +1300
Re: qsort Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-11-14 02:14 +0200
Re: qsort Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-11-14 00:43 -0800
Re: qsort pete <pfiland@mindspring.com> - 2011-11-12 22:42 -0500
csiph-web