[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:2004 Rules applicable to message 0177:

Rule  1.2  (Required) No reliance shall be placed on undefined or unspecified behaviour.


See also:

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