This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

it takes two to tango but MISRA and Keil do not

it takes two to tango but MISRA and Keil do not make good partners.

OK
I have the following
typedef signed char int8_t;
typedef unsigned char uint8_t;
the above to avoid depending on the compiler re (un)signed
typedef char mchar_t; // auxilary for MISRA and strcpy

Ok strcpy (xxx.....
gives no error if
char xxx....
mchar_t xxx.....
but gives rerror for both
int8_t xxx...
uint8_t xxx..

Parents
  • It's come to the point where I've actually forgotten the finer details of printf() and scanf() format specifier....
    so have I, but I dumped into this place where strcpy etc (fortunately not printf) is sprinkled as heavy as spices on an indian dish.

    we can argue till the cows come home re whether char chould be equivalent to one of the two specifics, mchar_t takes care of it a lot easier than 2743 lint exceptions. I still think it should work, but the horse is dead so let's not beat on it.

Reply
  • It's come to the point where I've actually forgotten the finer details of printf() and scanf() format specifier....
    so have I, but I dumped into this place where strcpy etc (fortunately not printf) is sprinkled as heavy as spices on an indian dish.

    we can argue till the cows come home re whether char chould be equivalent to one of the two specifics, mchar_t takes care of it a lot easier than 2743 lint exceptions. I still think it should work, but the horse is dead so let's not beat on it.

Children
No data