I’ve been trying to make my own C code style and coding rules approach, to be used in all my libs.
Code style rules are published and regularly updated on my Github account, under c_code_style repository name. Please use URL below to access website:
It was originally inspired by LwIP coding style with some modification. Document today covers:
- General rules like opening brackets, tabs size, etc
- Function syntax
- Comments and documentation
In case you would add some part or modify existing, feel free to propose in repository itself.