[chbot] C Coding Style

Stuart Brown stuartbrown2 at gmail.com
Thu Sep 22 00:32:03 BST 2016


Richard

How about:
1) NASA - http://homepages.inf.ed.ac.uk/dts/pm/Papers/nasa-c-style.pdf
2) JPL - http://lars-lab.jpl.nasa.gov/JPL_Coding_Standard_C.pdf
3) Barr Group -
http://www.barrgroup.com/Embedded-Systems/Books/Embedded-C-Coding-Standard
4) Jack Ganssle - www.*ganssle*.com/misc/fsm.doc

Stuart


Date: Wed, 21 Sep 2016 22:47:06 +1200
> From: Richard Jones <richard.jones.1952 at gmail.com>
> To: Christchurch Robotics <chchrobotics at lists.linuxnut.co.nz>
> Subject: [chbot] C Coding Style
>
> The topic of 'C' coding style came up today. At the risk of sounding like a
> troll I thought I would ask if people have a favourite 'C' style guide?
>
> Some may ask why have a style guide? My answer would be to make the code
> easier and quicker to understand, and less prone to the introduction of
> errors during maintenance by others or even the original author.
>
> I had a quick look around a few style guides for 'C' and liked Linus on the
> kernel coding style. The document is reasonably brief for a complex topic,
> educational and believe it or not amusing in parts. However it is
> definitely not for a beginner.
>
> https://www.kernel.org/doc/Documentation/CodingStyle
>
> This one is really brief:
>
> https://www.arduino.cc/en/Reference/StyleGuide
>
> Offers anyone?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20160922/313668e5/attachment.html>


More information about the Chchrobotics mailing list