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

getc VS fgetc and putc VS fputc

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



Joined: 30 Jan 2005
Posts: 23
Location: Argentina

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger

getc VS fgetc and putc VS fputc
PostPosted: Fri Feb 25, 2005 3:41 am     Reply with quote

Hello...

In my program I have two serial ports, one hardware and the other one software. I'm using fputc, fgetc, fprintf and Streams to use both serial ports. Does anybody know if the code size using fgetc in case of getc (for example) is too much? Or would it be better to, in a previouse line, include #use rs232 with the port configuration, and each time I switch from port do this, and not use fgetc.
Thanks!
Kimi
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Feb 25, 2005 7:03 am     Reply with quote

Why not just test this yourself Idea
Kimi



Joined: 30 Jan 2005
Posts: 23
Location: Argentina

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger

PostPosted: Fri Feb 25, 2005 9:16 am     Reply with quote

Hello

I have just finished modifying the code. just wanted to know if somebofy experienced a damatically decresed of code. I just earn only 0.5K...
It's not too much, but it's something.

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