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

String as a Parameter

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



Joined: 11 Mar 2004
Posts: 1

View user's profile Send private message

String as a Parameter
PostPosted: Thu Mar 11, 2004 10:58 am     Reply with quote

Hi..

I have a function that needs a String as a Parameter:

Code:
char sendwait(char *send, char *wait, int16 timeout) {
   addr2=addr3=0;
   for (TIME_SET(0); TIME<timeout; ) {        // loop until time runs out
.......


I thought this will be the right Code but if I execute it with:
Code:
c = sendwait("abc","abc",10);


The Compiler thing is "Line 269: Error #22: Bad expression syntax"

Please Help me .. I don't know whats the problem with the code
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 11, 2004 11:11 am     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=18468&highlight=constant+string
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