Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!mimsy!tove.umd.edu!cml From: cml@tove.umd.edu (Christopher Lott) Newsgroups: comp.lang.c Subject: Re: C Style help requested Message-ID: <19860@mimsy.UUCP> Date: 28 Sep 89 13:32:35 GMT References:Sender: nobody@mimsy.UUCP Reply-To: cml@tove.umd.edu.UUCP (Christopher Lott) Organization: The University of Maryland Dept of Computer Science Lines: 38 In article dg3s+@andrew.cmu.edu (David Gentzel) writes: >A friend of mine has been put in charge of coming up with a C (and C++) style >guide for his company..... I am told that the Indian Hill Style Guide (sp?) from Bell Laboratories is not available at any price, etc. to people outside that organization. I've never seen it, and can't comment. I can reccommend a document by Gary Perlman of The Ohio State University's Computer & Information Science Department, titled "C Coding Style & Lore." I do not think that this paper has been published, and when I last checked, it was only available from the author in hardcopy form. It is a terrific place to start for such a company-wide document. I have it, but it's difficult to email the hardcopy version :-). Contact Dr. Perlman at perlman@cis.ohio-state.edu. [Disclaimer: I graduated from OSU and took several of his classes.] Then there are the "10 Commandments for C Programmers" which I have; my version was produced by Henry Spencer. (also the author? think so.) 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. And finally I can recommend the GNU C Coding Standard, which I also have. Perhaps it would be better to request an updated version from the Free Software Foundation, but I will certainly pass mine on. I contacted Len Tower (tower@wheaties.ai.mit.edu). Another good reference, more general, is _The_Elements_of_Programming_Style_, by Kernighan and Plaugher. (Don't quote me on the authors.) I hope this helps. chris... cml@tove.umd.edu Computer Science Dept, U. Maryland at College Park 4122 A.V.W. 301-454-8711