05-02-2007, 07:08 PM
Just wondering what is the best way to define a boolean type for MISRA and most importantly what to define TRUE and FALSE as.
Some thoughts:
typedef unsigned char boolean_t
#define TRUE (0==0)
#define FALSE (!0)
Thanks.
Some thoughts:
typedef unsigned char boolean_t
#define TRUE (0==0)
#define FALSE (!0)
Thanks.