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

Rule:  7.19.dChecked automatically with code checker

Synopsis:The arguments in a formatted input function shall match the input specifiers in the format specification.
Language:C
Severity Level:1
Category:Library


Description:

Justification

Execution leads to undefined results when an input specifier and argument type do not match.

Example

scanf("%i", &f); /* WRONG */
scanf("%o", i); /* WRONG */
scanf("%[aa]s", p); /* WRONG */