Xref: utzoo comp.software-eng:5479 comp.lang.c:38809 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!cernvax!belk From: belk@cernvax.cern.ch (andrew belk) Newsgroups: comp.software-eng,comp.lang.c Subject: C coding style rules ? Summary: Anyone have an electronic list of programming style rules ? Keywords: C coding rules style hints suggestions Message-ID: <5090@cernvax.cern.ch> Date: 29 Apr 91 09:51:27 GMT Followup-To: comp.software-eng Organization: CERN, Geneva, Switzerland Lines: 20 Hi. Does anyone have an example of a set of programming style rules (nominally for C) intended to improve the structure and general modularity of programs ? I mean something like: o When to use global variables and why avoid them; o What to put in #include files; o What comments to include in the header comments to a function; o etc. Provided the files aren't too large (less than one or two thousand lines) it is probably best to mail me directly. If a sufficient number of other people express an interest I will pick the "best set" by some random criterion and post it. Many thanks in advance, Andy Belk CERN/SL -- ... Anyd ...