Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| c_language:c_style [2021/02/23 12:50] – utedass | c_language:c_style [2022/09/12 00:30] (current) – external edit 127.0.0.1 |
|---|
| ====== General ====== | ====== Misc ====== |
| |
| [[https://www.kernel.org/doc/html/v4.10/process/coding-style.html|The Linux kernel coding style]] | [[https://www.kernel.org/doc/html/v4.10/process/coding-style.html|The Linux kernel coding style]] |
| |
| [[http://web.archive.org/web/20190125125043/http://homepages.inf.ed.ac.uk/dts/pm/Papers/nasa-c-style.pdf|NASA C style guide]] | [[http://web.archive.org/web/20190125125043/http://homepages.inf.ed.ac.uk/dts/pm/Papers/nasa-c-style.pdf|NASA C style guide]] |
| | |
| | [[https://pubs.opengroup.org/onlinepubs/9699919799/|POSIX style guide?]] |
| |
| [[https://web.archive.org/web/20190407233045/http://www.maultech.com/chrislott/resources/cstyle/|C and C++ Style Guides]] -- Archived version of a collection of style guides | [[https://web.archive.org/web/20190407233045/http://www.maultech.com/chrislott/resources/cstyle/|C and C++ Style Guides]] -- Archived version of a collection of style guides |
| |
| | [[https://libevent.org/|libevent]] -- Available API to maybe seek inspiration from. Uses callbacks and stuff. |
| | |
| | [[https://barrgroup.com/sites/default/files/barr_c_coding_standard_2018.pdf|Embedded C Coding Standard]] -- By Michael Barr |
| |
| | [[https://www2.cs.arizona.edu/~mccann/cstyle.html|Indian Hill C Style Manual]] |
| ====== Things to consider ====== | ====== Things to consider ====== |
| |
| int and_how, int to, int break_the, int lines); | int and_how, int to, int break_the, int lines); |
| </code> | </code> |
| | |
| | ==== Program flow ==== |
| | |
| | * Should functions only have one return statement? How/when/why? |
| | |
| |