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

SR:  10.2#1Checked automatically with code checker

Synopsis:A function declared locally must have no storage-class specifier other than 'extern'.
Language:C
Severity Level:4
Category:EXTERNAL DECLARATIONS


Description:
This leads to undefined behaviour.

Example:

{
    static intfn(); /* undefined */
    extern intfn2(); /* legal, but not recommended */
    ...
}