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
Posted: Sun Aug 10, 2008 1:42 pm
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
Re: stream as a parameter function ?
Posted: Sun Aug 10, 2008 7:52 pm
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.
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