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

Rule:  6.5.2.2.bChecked automatically with code checker

Synopsis:Do not declare functions within functions.
Language:C
Severity Level:3
Category:Expressions


Description:

Justification

For portability reasons (ANSI C89 does not allow this) do not declare a function within a function.

Example

int CCBB_f(void)
{
   int r = OK;
  
   static int ccbb_foo(void) /* WRONG */
   {
      ...
   }
};