CS439: C Style Guidelines

Programming is not a dry mechanical process, but a form of art. Well written code has an aesthetic appeal while poor form can make other programmers and instructors cringe. Programming assignments will be graded based on style and correctness. Good programming practices usually include many of the following principles:

General Programming Style

Specific Guidelines

Code Layout


Comments

Naming Conventions



Checking Return Values

System calls and library functions provide important information to the programmer via return values. You MUST check all return values and handle errors reasonably.

Acknowledgment

These style guidelines were written by Alison Norman.


Last updated: Sun Jan 20 12:05:14 -0600 2013 [validate xhtml]