I need to test bit x within a byte array y. This is what I ended up with but I'm hoping someone can clue me in to a way to do this that is more clearly written and will compile well. I need to be able to use a value of X up to 47 so a simple use of BIT_TEST will not work.
Code:
Result=bit_test((Y[X/8]),(X&8))
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
Posted: Mon Nov 08, 2004 4:34 pm
Maybe I'm misunderstanding the whole thing, but shouldn't it be
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum