27 april 2009

Check for bit in byte

bool inByte(byte a, byte b) {
if ((a | b) == b) {
return true;
}
return false;
}

Inga kommentarer: