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> |