Search code examples
cmisra

MISRA C 11.9 The macro NULL shall be the only permitted form of integer null pointer constant


If I have the follow code " *k != (Queue *)0 * ", there is a violation of the rule 11.9. But why ?

Qich can I rewrite thise code for make it compliant to MISRA 11.9?


Solution

  • You have to use the Keyword "NULL" to make it compliant:

    *k != NULL