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

16Bits converting to 2 int

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







16Bits converting to 2 int
PostPosted: Sun Nov 05, 2006 2:25 pm     Reply with quote

Hy !

I looking for fastest way to convert int 16 into int8

EX X=4345 ( DEC INT16 )

I need to got

X1=4
X2=3
X3=4
X4=5

Thanks

Alain TAnguay
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Sun Nov 05, 2006 2:36 pm     Reply with quote

Try this:

http://www.ccsinfo.com/forum/viewtopic.php?t=18937&highlight=extract+digits

John
Horizon Light
Guest







PostPosted: Sun Nov 05, 2006 9:44 pm     Reply with quote

Working fine

Thanks a lot !


Alain
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