Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
smileymicros
PostPosted: Dec 19, 2011 - 10:48 PM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6137
Location: Great Smokey Mountains.

I tried to print:
Code:

printf("%1c,",c);

without the '1' and got a 'Bad Bequest' page. So how do I show this in a post?

Smiley

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
sternst
PostPosted: Dec 19, 2011 - 10:55 PM
Raving lunatic


Joined: Jul 23, 2001
Posts: 2438
Location: Osnabrueck, Germany

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=113426
Tip #2

_________________
Stefan Ernst
 
 View user's profile Send private message  
Reply with quote Back to top
MBedder
PostPosted: Dec 19, 2011 - 11:04 PM
Raving lunatic


Joined: Nov 02, 2009
Posts: 3239
Location: Zelenograd, Russia

Code:
printf("% c,",c);
Just add a whitespace between the % sign and a non-numeric character.
 
 View user's profile Send private message  
Reply with quote Back to top
smileymicros
PostPosted: Dec 19, 2011 - 11:56 PM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6137
Location: Great Smokey Mountains.

Thanks guys, I'll remember that next time.

Smiley

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits