Barr Group FacebookBarr Group TwitterBarr Group LinkedInBarr Group Vimeo

Rules

The following C coding rules relate to the width of lines of source code:

Rule 1.2.a.) The length of all lines in a program shall be limited to a maximum of 80 characters.

Reasoning

Code reviews and other examinations are from time-to-time conducted on printed pages, which must be free of distracting line wraps as well as missing (i.e., past the right margin) characters. Line width rules also ease on-screen side-by-side code differencing.

Exceptions

None.

Enforcement

Violations of this rule shall be detected by an automated scan during each build.

What’s happening and how it’s done. Get in the know.

Sign up for our newsletter today!

Receive free how-to articles, industry news, and the latest info on Barr Group webinars and training courses via email. 

To prevent automated spam submissions leave this field empty.