Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.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: Thu, 18 Aug 2011 06:00:51 -0500 Message-ID: <4E4CF0CB.52FF@mindspring.com> Date: Thu, 18 Aug 2011 07:00:27 -0400 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: selection-sort in C References: <4e4a4fc9$0$313$14726298@news.sunsite.dk> <871uwlk39e.fsf@bazspaz.fatphil.org> <4e4a563d$0$313$14726298@news.sunsite.dk> <4E4C9814.53B@mindspring.com> <87ty9fqq1j.fsf@blp.benpfaff.org> <4E4C9E0F.4796@mindspring.com> <87pqk3qo0z.fsf@blp.benpfaff.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.219.8 X-Trace: sv3-73J8kp2zvua6i3a7b1fw09fcJU/0MCRILSfemT4RQ5Wzp0gEKM42uDhn3URXFssaaf9rF4Hbi7/jlay!cB8YUlmUmFKhBDaFHiroxopoJgckvf4WSghzqR3ywBYwDiCnc9XF1erxN3B+UcHp9gIIlk0lfX5P!XdRSgcMi 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: 2271 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:9522 Ben Pfaff wrote: > > pete writes: > > > Ben Pfaff wrote: > >> > >> pete writes: > >> > >> > Also, > >> > if the parameters are const qualified > >> > in the definition of a function, > >> > then they should also be const qualified in any prototype > >> > of that function. > >> > >> Are you are expressing a style preference here? I do not think > >> that the C standard makes that requirement. > > > > That's what a prototype is. > > I think that you have missed the following parenthetical in > 6.7.5.3 "Function declarators (including prototypes)": > > (In the determination of type compatibility and of a > composite type, each parameter declared with function or > array type is taken as having the adjusted type and each > parameter declared with qualified type is taken as having > the unqualified version of its declared type.) Yes, I did miss that. -- pete