I can't find many recommendations/style guides for C that mention how to split up lines in C so you have less then 80 characters per line.
About the only thing I can find is PEP 7, the style guide for the main Python implmentation (CPython).
Does a link exist to a comprehensive C style guide which includes recommendations for wrapping?
Or failing that, at least some good personal advive on the matter?
P.S.: What do you do with really_long_variable_names_that_go_on_forever (besides shortening)? Do you put them on the left edge or let it spill?
Here is Linus'original article about (linux) kernel coding style. The document probably evolved since, it is part of the source distribution.
You can have a look at the GNU Coding Standards which covers much more than coding style, but are pretty interesting nonetheless.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With