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

printf how to compact this?

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



Joined: 23 Apr 2004
Posts: 227
Location: The Netherlands

View user's profile Send private message

printf how to compact this?
PostPosted: Sat Sep 01, 2007 8:15 am     Reply with quote

Code:
lcd_gotoxy(1,2); printf(lcd_putc,"Ch0: "); printf(lcd_putc,volt_str); printf(lcd_putc,"v"); printf(lcd_putc,"  %4LX",data); printf(lcd_putc,"h");


How can i rid off the serveral printf commands, and use only one printf command?
Miniman



Joined: 30 Apr 2007
Posts: 44

View user's profile Send private message

PostPosted: Sat Sep 01, 2007 8:22 am     Reply with quote

Code:

lcd_gotoxy(1,2);
printf(lcd_putc,"Ch0: %sv %4LXh,volt_str,data);

guess this should do it

Best regards
miniman
The Puma



Joined: 23 Apr 2004
Posts: 227
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Sep 01, 2007 9:19 am     Reply with quote

Ok, thx
It works
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