BitTest
Determines whether the specified bit is set
#include <nwbitops.h>
LONG BitTest (
void *bitArray,
LONG bitNumber);
This function returns a bit value of 0 if the specified bit is cleared. Otherwise, it returns a value of 1.
The bitArray parameter specifies the target array. The bit number can be greater than 32, targeting a bit well into the target array.
#include <nwbitops.h> LONG bitValue; void *bitArray; LONG bitNumber; bitValue = BitTest (bitArray, bitNumber);