View previous topic :: View next topic |
Author |
Message |
snibbe
Joined: 06 Jan 2005 Posts: 4
|
kbhit with multiple streams |
Posted: Thu Jan 06, 2005 2:08 pm |
|
|
Hello,
Could someone please explain how to use kbhit() with multiple streams? The other functions all have stream-specific calls, such as fgetc, fputc, fprintf, etc., but to the best of my knowledge there is no "fkbhit()".
Thanks,
Scott |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Jan 06, 2005 2:11 pm |
|
|
It's in the current manual, under kbhit:
value = kbhit()
value = kbhit(stream) |
|
|
snibbe
Joined: 06 Jan 2005 Posts: 4
|
|
Posted: Thu Jan 06, 2005 2:14 pm |
|
|
Great, thanks. Can you point me to the current manual? I have July 2003. The link here:
http://www.ccsinfo.com/download.shtml#CompilerManual
Says the latest revision is July 2003, but you seem to indicate there's a new one!
Thanks,
Scott |
|
|
Guest
|
|
Posted: Thu Jan 06, 2005 9:32 pm |
|
|
it is also in the online help ... much faster than looking into the manual
HELP -> index -> kbhit
Syntax:
value = kbhit()
value = kbhit (stream)
BTW, readme.txt also provides many useful information |
|
|
|