How to properly cast NULL according to MISRA?
(char *) NULL or char * msg = NULL triggers MISRA 10.5: The value of an expression should not be cast to an inappropriate essential type. So what is the correct way to cast NULL to some pointer? N.B.: I am using MISRA checks in CLion. >Solution : Assuming you didn’t define a home-made version… Read More How to properly cast NULL according to MISRA?