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

What I am doing wrong ?

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



Joined: 30 Jan 2004
Posts: 5

View user's profile Send private message

What I am doing wrong ?
PostPosted: Wed Feb 25, 2004 12:13 am     Reply with quote

Hi All,

Two of my function definitions in CCS C Compiler are as follows.

void lcd_print(unsigned char *string)
{
while (*string)
lcd_data_out (*string++);
}


void lcd_data_out(unsigned char c)
{
lcd_rs = 1;
send_char(c);
}


When I use the function "lcd_print("Hello");" it is not working but when I
use "lcd_data_out("Hello");" is working fine. In fact 'lcd_data_out' function is a sub-function of 'lcd_print' and supposed to print single character. Can you please tell me that I am doing any mistake.Is there any alternative way to do this.

Thanks and regards
Itp
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 25, 2004 1:18 am     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=18038&highlight=constant+string

http://www.ccsinfo.com/forum/viewtopic.php?t=6285&highlight=constant+string

http://www.ccsinfo.com/forum/viewtopic.php?t=592&highlight=constant+string
itp



Joined: 30 Jan 2004
Posts: 5

View user's profile Send private message

PostPosted: Wed Feb 25, 2004 4:11 am     Reply with quote

Thanks PCM programmer for your reply.
Regards
Itp
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