[previous] 0180 [next] [C99] Use of ll for conversion specifier.
ISO C99 Language features REFERENCE - ISO:C99-7.19.6 Formatted input/output functions

'll' has been used in a format string as a conversion specifier. This is not supported in ISO:C90; long long is a feature of ISO:C99.

Message 0180 will not be generated if the language extension option "-ex LONGLONG" is enabled (compiler personality).

For example:


/*PRQA S 336,602,1027,1278,1307,2017,2211,3122,3408,3447,3602,3625 ++*/

#include <stdio.h>

extern long long          sla;
extern unsigned long long ula;

extern void foo(void)
{
  (void)scanf("Lets input the values! %lld %llu", &sla, &ula);  /* Message 0180 and 0180 */
  (void)printf("Lets output the values! %lld %llu", sla, ula);  /* Message 0180 and 0180 */
}


MISRA-C:2004 Rules applicable to message 0180:

Rule  1.1  (Required) All code shall conform to ISO/IEC 9899:1990 C programming language, ISO 9899, amended and corrected by ISO/IEC 9899/COR1:1995, ISO/IEC 9899/AMD1:1995, and ISO/IEC 9899/COR2: 1996192


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