Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
3Activity

Table Of Contents

1.1Purpose
1.2Audience
1.3Approach
2.2.2Spacing
2.2.3Indentation
2.3Comments
2.4Meaningful Names
2.4.1Standard Names
2.4.2Variable Names
2.4.3Capitalization
2.4.4Type and Constant Names
3.1Program Files
3.2README File
3.3Standard Libraries
3.4Header Files
3.6Makefiles
3.7 Standard Filename Suffixes
FILE ORGANIZATION
4.1File Prolog
4.2.2Selection Control Statements
4.2.3Iteration Control Statements
4.2.4Severe Error and Exception Handling Statements
4.3Include Directive
4.4Defines and Typedefs
4.5External Data Declarations and Definitions
4.6Sequence of Functions
FUNCTION ORGANIZATION
5.1Function Prologs
5.2Function Arguments
5.3External Variable Declarations
5.4Internal Variable Declarations
5.5Statement Paragraphing
5.6Return Statement
DATA TYPES, OPERATORS, AND EXPRESSIONS
6.1Variables
6.2Constants
6.2.1Const Modifier
6.2.2#define Command
6.2.3Enumeration Types
6.2.4Simple Constants
6.3Variable Definitions and Declarations
6.3.1Numbers
6.3.2Qualifiers
6.3.3Structures
6.3.4Automatic Variables
6.4Type Conversions and Casts
6.5Pointer Types
6.6Pointer Conversions
6.7Operator Formatting
6.9Conditional Expressions
6.10Precedence and Order of Evaluation
STATEMENTS AND CONTROL FLOW
7.1Sequence Statements
7.1.1Statement Placement
7.1.2Braces
7.2Selection Control Statements
7.2.1If
7.2.2If Else
7.2.3Else If
7.2.4Nested If Statements
7.2.5Switch
7.3Iteration Control Statements
7.3.1While
7.3.2For
7.3.3Do While
7.4Severe Error and Exception Handling
7.4.1Gotos and Labels
7.4.2Break
PORTABILITY AND PERFORMANCE
8.1Guidelines for Portability
8.2Guidelines for Performance
C CODE EXAMPLES
9.1Makefile
9.2C Program File: RF_GetReference.c
9.3Include File: HD_reference.h
BIBLIOGRAPHY
INDEX
0 of .
Results for:
No results containing your search query
P. 1
C Style Guide

C Style Guide

Ratings: (0)|Views: 40 |Likes:
Published by anonymous_65536

More info:

Published by: anonymous_65536 on Feb 09, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/06/2012

pdf

text

original

You're Reading a Free Preview
Pages 4 to 11 are not shown in this preview.
You're Reading a Free Preview
Pages 15 to 27 are not shown in this preview.
You're Reading a Free Preview
Pages 31 to 100 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->