TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  5.1.1.fChecked automatically with code checker

Synopsis:With respect to user files, it is good practice to place the include of the header file with the own definitions of the source file at the top.
Language:C
Severity Level:8
Category:Conceptual Models


Description:

Justification

With respect to user files, it is good practice to place the include of the header file with the own definitions of the source file at the top.

Example 1

#include <stdio.h> /* WRONG for CCBB_foo.c */
#include "CCBB_foo.h"

Example 2

#include "CCBB_foo.h" /* RIGHT for CCBB_foo.c */
#include <stdio.h>