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

strcat

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



Joined: 05 Jan 2006
Posts: 105

View user's profile Send private message

strcat
PostPosted: Sun Apr 23, 2006 4:18 pm     Reply with quote

hi all

i need to make more than 4 strings in one string then printf it onto RF stream,,i dont know how to do!!!!

i tried to use strcat ,but its not succeed.

any body can help,please! Rolling Eyes

thanx
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Sun Apr 23, 2006 4:42 pm     Reply with quote

You don't necessarily need strcat. You could just use printf. This might wrk for you:

Code:
printf("%s%s%s%s", str1, str2, str3, str4);


Please correct me if I'm wrong
hadeelqasaimeh



Joined: 05 Jan 2006
Posts: 105

View user's profile Send private message

rs232(stream)
PostPosted: Mon Apr 24, 2006 3:38 am     Reply with quote

this will print them but as different strings,,right???
what ineed is to make them as one string and print them onto software rs232(stream) and i have to finish them by\r\n

so....what do you think???
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Re: rs232(stream)
PostPosted: Mon Apr 24, 2006 3:51 am     Reply with quote

hadeelqasaimeh wrote:
this will print them but as different strings,,right???

Your treatment of a term "string" might be different from mine, so try it and see if it works for you. If I remember correctly, printf() doesn't output the terminating null-character at the end.
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