[previous] 0177 [next] [U] Field width of format conversion specifier exceeds 509 characters.
Explicitly undefined REFERENCE - ISO:C90-7.9.6.1 Environmental limit

This format conversion specifier includes a field-width which exceeds 509 characters. A field width of this size will not be portable to all compilers.

For example:


/*PRQA S 336,602,1307,2017,3122,3200,3209,3227,3408,3602,3625 ++*/

#include <stdio.h>

extern void foo(int n)
{
    printf("%509d\n", n);                      /*              */
    printf("%510d\n", n);                      /* Message 0177 */
}


MISRA C:2012 Rules applicable to message 0177:

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