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

Questions and discussions about MISRA C not fitting under migration or rules forums

Moderators: misra-c, david ward

Post Reply
prem_annam
Posts: 3
Joined: Wed Aug 01, 2018 1:52 pm
Company: General

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

Post by prem_annam » Mon Aug 06, 2018 5:34 am

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


Thank you.

misra-c
Posts: 572
Joined: Thu Jan 05, 2006 1:11 pm

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

Post by misra-c » Wed Sep 16, 2020 10:00 am

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
---
Posted by and on behalf of
the MISRA C Working Group

Post Reply

Return to “General Questions”