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(external_putc,"test")

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



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

Printf(external_putc,"test")
PostPosted: Sun Feb 05, 2006 1:36 am     Reply with quote

Just got a thought.

Has anybody tried to re-direct the printf to do this?
This way you can shortcut the sprintf to send character by character to "external_putc"

Printf(external_putc,"test")

void external_putc( char c) {
switch (c) {
case '\c' :clear_screen(0);
default : external_byte(1,c); break;
}
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Feb 05, 2006 1:49 am     Reply with quote

I'm not sure what you mean by 'external_putc', but yes, we are
aware of the re-direction feature of printf. One common use for
it is to redirect output to the lcd_putc() function.
Eugeneo



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

PostPosted: Sun Feb 05, 2006 3:13 am     Reply with quote

Never mind. Stupid me. Must have done a little too much programming today
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