[previous] 3613 [next] Some pre-ISO compilers would treat this 8 or 9 as an octal digit.
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 QA·C 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 */

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents