Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualHodgman

Posted 02 June 2014 - 08:33 PM

bool IsBitSet( unsigned char byte, int index )
{
  int mask = 1<<index;
  return (byte & mask) != 0;
}

: Thanks, Chris_F


#2Hodgman

Posted 02 June 2014 - 08:33 PM

bool IsBitSet( unsigned char byte, int index )
{
  int mask = 1<<index;
  return (byte & mask) != 0;
}

#1Hodgman

Posted 02 June 2014 - 06:44 PM

bool IsBitSet( unsigned char byte, int index )
{
  int mask = 1<<index;
  return (byte & index) != 0;
}

PARTNERS