![]() |
![]() |
0176 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-7.9.6.1 Formatted input/output functions | ||||||
An incomplete format conversion specifier has been encountered in a call to
printf, fprintf or sprintf.
The character that specifies the type of conversion appears to be missing.
For example:
/*PRQA S 336,602,1307,2017,3122,3200,3209,3227,3408,3602,3625 ++*/
#include <stdio.h>
extern void foo(int n)
{
printf("Value is: %d", n); /* OK */
printf("Value is: %0", n); /* Message 0176 */
printf("Value is: %#", n); /* Message 0176 */
printf("Value is: %h", n); /* Message 0176 */
}
MISRA C:2012 Rules applicable to message 0176:
| Rule-1.3 (Required) | There shall be no occurrence of undefined or critical unspecified behaviour |
See also:
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |