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 CCS Technical Support

Easy method to emptying a buffer array

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



Joined: 22 Feb 2007
Posts: 55

View user's profile Send private message

Easy method to emptying a buffer array
PostPosted: Thu Mar 22, 2007 5:04 am     Reply with quote

Hello super forum.

I'am new in C-progamming.

I'am using the normal buffer array rutine for saving USART receive data.
Now I want to move this 4 element buffer array to an int32 variabel.

How can I do this easy and fast?
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Mar 22, 2007 6:50 am     Reply with quote

Quote:

Now I want to move this 4 element buffer array to an int32 variabel.

Use the built in function make32().


Humberto
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu Mar 22, 2007 7:40 am     Reply with quote

perhaps a union.
or memcpy.
Mortenc



Joined: 22 Feb 2007
Posts: 55

View user's profile Send private message

PostPosted: Fri Mar 23, 2007 3:16 am     Reply with quote

!! Thanks a lot.

I can see that the "make32" is just want I need.
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