c_syntax - SOFTWARE ENGINEERING LABORATORY SERIES...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: SOFTWARE ENGINEERING LABORATORY SERIES SEL-94-003 C STYLE GUIDE AUGUST 1994 National Aeronautics and Space Administration Goddard Space Flight Center Greenbelt, Maryland 20771 SEL-94-003 i FOREWORD The Software Engineering Laboratory (SEL) is an organization sponsored by the National Aeronautics and Space Administration/Goddard Space Flight Center (NASA/GSFC) and created to investigate the effectiveness of software engineering technologies when applied to the development of applications software. The SEL was created in 1976 and has three primary organizational members: NASA/GSFC, Software Engineering Branch University of Maryland, Department of Computer Science Computer Sciences Corporation, Software Engineering Operation The goals of the SEL are (1) to understand the software development process in the GSFC environment; (2) to measure the effect of various methodologies, tools, and models on the process; and (3) to identify and then to apply successful development practices. The activities, findings, and recommendations of the SEL are recorded in the Software Engineering Laboratory Series, a continuing series of reports that includes this document. The major contributors to this document are Jerry Doland (CSC) Jon Valett (GSFC) Many people in both the Software Engineering Branch at NASA/GSFC and in the Software Engineering Operation at CSC reviewed this document and contributed their experiences toward making it a useful tool for Flight Dynamics Division personnel. Single copies of this document can be obtained by writing to Software Engineering Branch Code 552 Goddard Space Flight Center Greenbelt, Maryland 20771 SEL-94-003 iii ABSTRACT This document discusses recommended practices and style for programmers using the C language in the Flight Dynamics Division environment. Guidelines are based on generally recommended software engineering techniques, industry resources, and local convention. The Guide offers preferred solutions to common C programming issues and illustrates through examples of C code. SEL-94-003 v C Style Guide INTRODUCTION 1 1.1 Purpose.................................................................................................. 1 1.2 Audience................................................................................................. 1 1.3 Approach............................................................................................... 1 READABILITY AND MAINTAINABILITY 3 2.1 Encapsulation and Information Hiding................................................... 3 2.2 White Space............................................................................................ 4 2.2.1 Blank Lines................................................................................. 5 2.2.2 Spacing....................................................................................... 5 2.2.3 Indentation................................................................................. 6 2.3 Comments.............................................................................................. Comments....
View Full Document

Page1 / 100

c_syntax - SOFTWARE ENGINEERING LABORATORY SERIES...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online