Deutsch English Français Italiano |
<lql202FsdjpU1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman <bowman@montana.com> Newsgroups: comp.os.linux.misc Subject: Re: Joy of this, Joy of that Date: 26 Nov 2024 04:43:47 GMT Lines: 39 Message-ID: <lql202FsdjpU1@mid.individual.net> References: <vhigot$1uakf$1@dont-email.me> <6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com> <20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me> <vhmprp$iaf1$1@dont-email.me> <LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com> <vhoeap$r8gq$2@dont-email.me> <vhpmq3$14s79$2@dont-email.me> <vhq1f7$16bou$1@dont-email.me> <vhqm4g$1aarf$1@dont-email.me> <vhr2r7$1cdln$1@dont-email.me> <vhr8hh$1ddh7$2@dont-email.me> <vhr9u1$1dh3s$1@dont-email.me> <vhrbsr$1dqca$2@dont-email.me> <vhs3ji$1kb5c$1@dont-email.me> <vhtht6$1s5d5$5@dont-email.me> <vhtplb$1tioh$1@dont-email.me> <vhuutu$26l4e$1@dont-email.me> <vi05g5$2cuig$2@dont-email.me> <lqi36tFdu06U2@mid.individual.net> <A0Wdndoii-yGt9n6nZ2dnZfqn_idnZ2d@earthlink.com> <wwvh67vlm0j.fsf@LkoBDZeT.terraraq.uk> <_YOcnXSM0Is_2tj6nZ2dnZfqnPednZ2d@earthlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net MadNgP1OwfcJ1ygMRNqIyw6nUcmcyzs0lgJfPtH2Jwjoca92Uv Cancel-Lock: sha1:5qkK3rPrCcpRy0e/xz8qry41i3g= sha256:dyWBOdcGebfSJzRD7P2G2Smfg3OaP9nf+pue/bdLzLs= User-Agent: Pan/0.149 (Bellevue; 4c157ba) Bytes: 2516 On Mon, 25 Nov 2024 22:59:29 -0500, 186282@ud0s4.net wrote: > Heh ... much of my 'C' looks like the top example, all > straight-forward and readable. As I said somewhere, 'C' was the > neat-o new lang back when I got started in things so I strongly trend > towards the K&R look and feel even now. > SO easy to write incomprehensible 'C' ! Most of them have been 'fixed' but I'm sure there are K&R style definitions lurking someplace. #include "stdio.h" int add_stuff(a, b, c) int a; int b; int c; { return a + b +c; } int main(void) { printf("the sum is %d\n", add_stuff(1, 4, 6)); return 0; } still works with gcc 11.4 although with std=c2x it warns junk.c: In function ‘add_stuff’: junk.c:3:5: warning: old-style function definition [-Wold-style- definition] 3 | int add_stuff(a, b, c) | ^~~~~~~~~ I don't know if gcc will ever default to whining about them. That's staying power -- 46 years and cointing.