18-10-2017, 09:20 AM
Hi everyone,
Can anyone give an example of MISRA-C "switch" statement pls....
Can anyone give an example of MISRA-C "switch" statement pls....
<t></t>
Welcome to the new MISRA discussion forum, if you were previously a member of our forums you may need to reset your password.
MISRA switch staement
|
18-10-2017, 09:20 AM
Hi everyone,
Can anyone give an example of MISRA-C "switch" statement pls....
<t></t>
18-10-2017, 11:01 AM
I assume you mean fully compliant, right?
Code: switch (i)/* essentially integer (for bool use if/else), needs at least two clauses*/
<t></t>
13-11-2017, 11:04 AM
An example of a compliant switch statement is:
Code: typedef signed char int8_t;
Posted by and on behalf of the MISRA C Working Group
|
« Next Oldest | Next Newest »
|