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

print("%") error

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







print("%") error
PostPosted: Fri Feb 23, 2007 4:49 am     Reply with quote

Sorry my bad english!

My code:
printf(glcd_logo,"_!OKK[!KK_!Y%#%Y");
Complier error:
Printf variable count (%) does not match...

How i can print "%" ???
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Feb 23, 2007 5:05 am     Reply with quote

From the CCS manual, chapter on printf command:
Quote:
A %% will output a single %.
Guest








PostPosted: Mon Feb 26, 2007 1:04 am     Reply with quote

Use '\' to print special characters!
Nick



Joined: 05 Jul 2006
Posts: 1

View user's profile Send private message

PostPosted: Mon Feb 26, 2007 10:04 am     Reply with quote

I just wanted to clarify that %% is the proper way. Use of escaping is not correct.
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