Did '\000' and 000 comply with Rule 2-13-2 - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C++ (https://forum.misra.org.uk/forumdisplay.php?fid=18) +--- Forum: MISRA C++:2008 rules (https://forum.misra.org.uk/forumdisplay.php?fid=19) +---- Forum: 6.2 Lexical conventions (C++) (https://forum.misra.org.uk/forumdisplay.php?fid=131) +---- Thread: Did '\000' and 000 comply with Rule 2-13-2 (/showthread.php?tid=1318) |
Did '\000' and 000 comply with Rule 2-13-2 - longfem - 28-02-2017 Dears, Rule 2-10-3 said that Octal constants (other than zero) and octal escape sequences (other than “\0â€) shall not be used. From the description we know that '\0' and 0 comply with the rule. How about '\00', '\000' , 00 and 000 ? Thanks, Longfem Re: Did '\000' and 000 comply with Rule 2-13-2 - misra cpp - 10-07-2017 As written 00 and 000 are compliant, whilst \00 and \000 are non-compliant. This is not a particularly sensible position, so will be reviewed for the next version |