MISRA Discussion Forums
what is the method of defining infinite loop according to MISRA C-2012 compalince - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: General Questions (https://forum.misra.org.uk/forumdisplay.php?fid=27)
+--- Thread: what is the method of defining infinite loop according to MISRA C-2012 compalince (/showthread.php?tid=1447)



what is the method of defining infinite loop according to MISRA C-2012 compalince - prem_annam - 06-08-2018

what is the method of defining infinite loop according to MISRA C-2012 compalince ?


Thank you.


Re: what is the method of defining infinite loop according to MISRA C-2012 compalince - misra-c - 16-09-2020

The MISRA-C compliance does not define an approach.

However, there are two common methods: for ( ; ; ) and while ( true ) - both are permitted by exceptions to Rule 14.2 and Rule 14.3 respectively