belk@cernvax.cern.ch (andrew belk) (04/29/91)
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 ...
cml@tove.cs.umd.edu (Christopher Lott) (04/29/91)
In article <5090@cernvax.cern.ch> belk@cernvax.cern.ch (andrew belk) writes: >Hi. Does anyone have an example of a set of programming style rules >(nominally for C) Whoo boy, do I ever. Actually, this is on the FAQ list in comp.lang.c, but not in comp.software-eng, so I'm posting. ftp to giza.cis.ohio-state.edu and look in directory pub/style-guide Or, email to me and I'll do what I can for you. chris... -- Christopher Lott \/ Dept of Comp Sci, Univ of Maryland, College Park, MD 20742 cml@cs.umd.edu /\ 4122 AV Williams Bldg 301 405-2721 <standard disclaimers>