Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: C Style help requested Message-ID: <19882@mimsy.UUCP> Date: 29 Sep 89 18:08:39 GMT References:<19860@mimsy.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 25 In article <19860@mimsy.UUCP> cml@tove.umd.edu (Christopher Lott) writes: >Then there are the "10 Commandments for C Programmers" which I have; >my version was produced by Henry Spencer. (also the author? think so.) Yes. >I have saved all of Chris Torek's tutorials that I have seen, all of >which I can pass on. They are extremely helpful on technical issues; maybe >not so much for style. My `style' is extremely simple: indent -d0 -di0 -nfc1 # 4.3BSD-tahoe indent produces it. >Another good reference, more general, is _The_Elements_of_Programming_Style_, >by Kernighan and Plaugher. (Don't quote me on the authors.) This is also correct (the authors, I mean, as well as the `more general' remark); it points more towards correctness and naming issues than towards finicky points of layout (as I said, mine matches `indent -d0 -di0'). -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris