Barr Group FacebookBarr Group TwitterBarr Group LinkedInBarr Group Vimeo

Rules

The following C coding rules relate to the use of linefeeds:

Rule 3.6.a.) Whenever possible, all source code lines shall end only with the single character LF (ASCII 0x0A).

Reasoning

The multi-character sequence CR-LF (ASCII 0x0D 0x0A) is more likely to cause problems in a multi-platform environment than the single character LF. One such problem is associated with multi-line preprocessor macros on Unix platforms.

Exceptions

None.

Enforcement

Whenever possible, programmer’s editors shall be configured to use LF. In addition, an automated tool shall scan all new or modified source code files during each build, replacing each CR-LF sequence with an LF.

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.