Hello
Actually I'm looking for an ccs command that allow me to get the value of a bit from a char variable.
EX :
Code:
char c;
c=0b00001000;
What is the command that allow me to have the value of the bit 4 ???
And what is the command that allow me to change that bit ???
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Wed Mar 28, 2012 8:40 am
The functions bit_set() bit_clear() and bit_test() work with chars as well as with bytes. _________________ The search for better is endless. Instead simply find very good and get the job done.
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