HP C A.06.05 Reference Manual

Data Types and Declarations
_Bool
Chapter 3 43
A bit field of type _Bool may be used in an expression where an int or unsigned int is
used.
When a scalar value is converted to _Bool the result is 0, if the value compares equal to 0,
else the result is 1.
Rules for _Bool Conversion
The following conversion rules are applicable while using _Bool.
Scalar to _Bool
Boolval = scalarval ? true : false;
Boolval would be true(1) or false(0) depending whether scalarval is nonzero or zero.
_Bool to scalar
scalarval = Boolval ? 1 : 0;
scalarval would be 1 or 0 depending on Boolval being true(1) or false(0).