09-05-2007, 03:24 PM
1. See 6.1.2.5 for a description of pointers to object types.
2. This is compliant. The rule is to prohibit for example, casting from pointer to object to pointer to function. While compliant, such practice is not without risk.
2. This is compliant. The rule is to prohibit for example, casting from pointer to object to pointer to function. While compliant, such practice is not without risk.
Posted by and on behalf of the MISRA C Working Group