Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!ctrsol!ginosko!uunet!zephyr.ens.tek.com!tektronix!tekig5!tekig5.PEN.TEK.COM!peteru From: peteru@tekig5.PEN.TEK.COM (Peter Uchytil) Newsgroups: comp.std.c Subject: C coding standards Message-ID: <4558@tekig5.PEN.TEK.COM> Date: 25 Jul 89 15:35:34 GMT Sender: peteru@tekig5.PEN.TEK.COM Reply-To: peteru@tekig5.PEN.TEK.COM (Peter Uchytil) Distribution: na Organization: Tektronix, Inc., Beaverton, OR. Lines: 13 I posted this question a while back in comp.lang.c. Perhaps I was in the wrong place. In case you've all read this before, I'll keep it short. Basically I'm looking for standards for C code. Things such as naming conventions (e.g. all structures end with _s) and code conventions (how things get indented; do the static variables come before the globals?; etc.). I know that it might seem that this is getting picky, and it is, but I've found that it greatly helps when several people are working on a big project and need to read each other's code. Anyone know of any standards of this kind? I'll take anything, even if it's just a couple of suggestions on what you do. Thanks! Pete peteru@icarus.pen.tek.com