Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
Stream name passed into a function.
Posted: Thu Jan 06, 2005 5:42 pm
I want to pass a stream name into a function.
Is this possible?
something like this,.. just to get the idea. (DON"T TRY TO COMPILE THIS)
int8 timed_fgetc(STREAM)
{
int8 ret_val;
if kbhit(STREAM){
ret_val=fgetc(stream);
}
return (ret_val);
}
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Mon Jan 10, 2005 9:03 am
Quote:
Stream is a stream identifier (a constant byte)
You can't since it is a constant. You would have to use a switch statement.
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