<div dir="ltr"><div><div><div><div><div><div>Richard<br><br></div>How about:<br></div>1) NASA - <a href="http://homepages.inf.ed.ac.uk/dts/pm/Papers/nasa-c-style.pdf">http://homepages.inf.ed.ac.uk/dts/pm/Papers/nasa-c-style.pdf</a><br></div>2) JPL - <a href="http://lars-lab.jpl.nasa.gov/JPL_Coding_Standard_C.pdf">http://lars-lab.jpl.nasa.gov/JPL_Coding_Standard_C.pdf</a><br></div>3) Barr Group - <a href="http://www.barrgroup.com/Embedded-Systems/Books/Embedded-C-Coding-Standard">http://www.barrgroup.com/Embedded-Systems/Books/Embedded-C-Coding-Standard</a><br></div>4) Jack Ganssle - <cite class="_Rm">www.<b>ganssle</b>.com/misc/fsm.doc<br><br></cite></div><cite class="_Rm">Stuart<br></cite><div><div><div><div><div><br><div><div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Wed, 21 Sep 2016 22:47:06 +1200<br>
From: Richard Jones <<a href="mailto:richard.jones.1952@gmail.com">richard.jones.1952@gmail.com</a>><br>
To: Christchurch Robotics <<a href="mailto:chchrobotics@lists.linuxnut.co.nz">chchrobotics@lists.linuxnut.<wbr>co.nz</a>><br>
Subject: [chbot] C Coding Style<br><br>
The topic of 'C' coding style came up today. At the risk of sounding like a<br>
troll I thought I would ask if people have a favourite 'C' style guide?<br>
<br>
Some may ask why have a style guide? My answer would be to make the code<br>
easier and quicker to understand, and less prone to the introduction of<br>
errors during maintenance by others or even the original author.<br>
<br>
I had a quick look around a few style guides for 'C' and liked Linus on the<br>
kernel coding style. The document is reasonably brief for a complex topic,<br>
educational and believe it or not amusing in parts. However it is<br>
definitely not for a beginner.<br>
<br>
<a href="https://www.kernel.org/doc/Documentation/CodingStyle" rel="noreferrer" target="_blank">https://www.kernel.org/doc/<wbr>Documentation/CodingStyle</a><br>
<br>
This one is really brief:<br>
<br>
<a href="https://www.arduino.cc/en/Reference/StyleGuide" rel="noreferrer" target="_blank">https://www.arduino.cc/en/<wbr>Reference/StyleGuide</a><br>
<br>
Offers anyone?<br></blockquote></div></div></div></div></div></div></div></div></div></div>