#include typedef _Bool bool_t; /* ----------------- Example code from MISRA C:2012 begin ----------------- */ struct S; bool_t f1 ( struct S *s1, struct S *s2 ) { return ( memcmp ( s1, s2, sizeof ( struct S ) ) != 0 ); /* Non-compliant */ } union U { uint32_t range; uint32_t height; }; bool_t f2 ( union U *u1, union U *u2 ) { return ( memcmp ( u1, u2, sizeof ( union U ) ) != 0 ); /* Non-compliant */ } const char a[ 6 ] = "task"; bool_t f3 ( const char b[ 6 ] ) { return ( memcmp ( a, b, 6 ) != 0 ); /* Non-compliant */ } /* ------------------ Example code from MISRA C:2012 end ------------------ */