Determines if any of the specified bits in a value are set according to a specified bit mask.
Files
lib_def.h
Prototype
Arguments
val
Value to test if any of the specified bits are set.
mask
Mask of bits to check if set in the value.
Returned Value
DEF_YES
If any of the bits in the bit mask
are set in val
;
DEF_NO
if all the bits in the bit mask
are clear in val
.
Required Configuration
None.
Notes / Warnings
val
and mask
should be unsigned integers. NULL
mask
(i.e., mask of value 0
) allowed; returns DEF_NO
since no mask bits specified.