![]() |
![]() |
0185 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-7.9.6 Formatted input/output functions | ||||||
This format string does not contain format conversion specifiers for all the arguments that have been supplied For example, in the code below, no format specifier has been supplied for the argument "total".
/*PRQA S 336,602,1307,2017,3122,3200,3209,3227,3408,3602,3625 ++*/
#include <stdio.h>
extern void foo(int people, int total)
{
printf ("There are %d people still living out of the original population", people, total); /* Message 0185 */
}
MISRA-C:2004 Rules applicable to message 0185:
| Rule 1.2 (Required) | No reliance shall be placed on undefined or unspecified behaviour. |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |