| Author |
Message |
|
|
Posted: Dec 19, 2011 - 10:48 PM |
|


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
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 10:55 PM |
|


Joined: Jul 23, 2001
Posts: 2439
Location: Osnabrueck, Germany
|
|
|
|
|
|
|
Posted: Dec 19, 2011 - 11:04 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Dec 19, 2011 - 11:56 PM |
|


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
|
| |
|
|
|
|
|
|
|