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

Rule:  6.5.3.4.cChecked automatically with code checker

Synopsis:Don't apply sizeof to a function.
Language:C
Severity Level:2
Category:Expressions


Description:

The sizeof operator is not defined for functions:

   size_t n = sizeof(function); /* WRONG */