CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Question for bit_test()

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
HELL_FIRE_
Guest







Question for bit_test()
PostPosted: Wed Jan 02, 2008 9:54 am     Reply with quote

Hi all. Can somebody tell me, how I can release bit_test() function without to use those integrated in CCS...how to make a function which checks a one bit of variable ? Thanks to all

Regards
Heath



Joined: 21 Dec 2007
Posts: 41

View user's profile Send private message

PostPosted: Wed Jan 02, 2008 10:03 am     Reply with quote

I don't fully understand the question.
CorosanD



Joined: 23 Jul 2007
Posts: 3

View user's profile Send private message

PostPosted: Wed Jan 02, 2008 10:09 am     Reply with quote

The question is:

We have one variable 0b01000110, bit number 4 is "0" then the output of our function is "0", so thats the work of bit_test(var , bit) function.
Variable: b = bit_test( 0b01000110 , 4 );

well the value of 'b' is "0"

The question is how to make our bit_test() function Wink
Heath



Joined: 21 Dec 2007
Posts: 41

View user's profile Send private message

PostPosted: Wed Jan 02, 2008 10:20 am     Reply with quote

Why? If bit_test already does the work for you.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jan 02, 2008 10:23 am     Reply with quote

He asked the same question two weeks ago and was given an answer
at that time, in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=20365&start=3
Heath



Joined: 21 Dec 2007
Posts: 41

View user's profile Send private message

PostPosted: Wed Jan 02, 2008 10:24 am     Reply with quote

Oh, I had a suspicion it was a school project.
CorosanD



Joined: 23 Jul 2007
Posts: 3

View user's profile Send private message

PostPosted: Wed Jan 02, 2008 10:31 am     Reply with quote

Thanks for link to previous thread I've posted. I'm fully forget it! Sad
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group