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

stream as a parameter function ?

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



Joined: 15 Jul 2007
Posts: 3

View user's profile Send private message

stream as a parameter function ?
PostPosted: Fri Aug 08, 2008 7:19 am     Reply with quote

hi all,

i am wondering how to use a stream as a parameter ?
i would like to do something like this :

void debug(stream _stream)
{
fprintf(_stream,"in this stream %?",stream);
}


thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 10, 2008 1:42 pm     Reply with quote

I don't think you can do this at run-time. I think it's hard-coded at
compile time (to use the specified stream).
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Re: stream as a parameter function ?
PostPosted: Sun Aug 10, 2008 7:52 pm     Reply with quote

LetThereBeLight wrote:
i am wondering how to use a stream as a parameter ?

This question was brought up in the past in this thread: http://www.ccsinfo.com/forum/viewtopic.php?t=31264
Unfortunately, it was found that the stream is assigned at compile time.
_________________
Read the label, before opening a can of worms.
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