Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The C90 Standard includes the this requirement:

If the expression that precedes the parenthesized argument list in a function call consists solely of an identifier, and if no declaration is visible for this identifier, the identifier is implicitly declared exactly as if, in the innermost block containing the function call, the declaration extern int identifier(); appeared.

...

For more information on function declarations, see guideline recommendation DCL07-C. Include the appropriate type information in function declarators.

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Bibliography

Related Guidelines

Wiki Markup\[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] Section 6.7.2, "Type specifiers", Section 6.5.2.2, "Function calls" \[[

ISO/IEC PDTR 24772|AA. Bibliography#ISO/IEC PDTR 24772]\] TR 24772 "OTR Subprogram Signature Mismatch" \[[Jones 2008|AA. Bibliography#Jones 08]\] \[[MISRA 2004|AA. Bibliography#MISRA 04]\]

MISRA

Bibliography

Jones 2008

...

      02. Declarations and Initialization (DCL)      DCL32-C. Guarantee that mutually visible identifiers are unique