![]() |
![]() |
3613 | ![]() |
||||
![]() | |||||||
| Constants | |||||||
This octal escape sequence is followed by an '8' or a '9'. This digit might be interpreted as part of the escape sequence by some (very) old compilers. Certain pre-ISO compilers recognised the digits 8 and 9 as valid characters within an octal number, but this is not permitted within ISO:C and QAC will simply treat them as ordinary characters. So for example, according to ISO:C, the sequence "\159" is a string literal consisting of the escape sequence '\15' followed by the character '9' followed by a terminating null byte. An old compiler might interpret it as a single escape sequence '\159' followed by a null byte. The escape sequence '\159' would be interpreted as equivalent to '\160'. For example:
/*PRQA S 2017,3122,3211,3408,3625,3628,3674 ++*/
char c[] = "\159"; /* Message 3613 */
No MISRA C:2012 Rules applicable to message 3613
![]() | ||
| 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 |