Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!crdgw1!crdos1!davidsen
From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr)
Newsgroups: comp.unix.xenix
Subject: Re: getc help needed
Summary: no wait read
Message-ID: <572@crdos1.crd.ge.COM>
Date: 27 Sep 89 20:11:23 GMT
References: <2056@leah.Albany.Edu>
Reply-To: davidsen@crdos1.UUCP (bill davidsen)
Distribution: usa
Organization: GE Corp R&D Center
Lines: 10

The usual way to do this is to use the ioctl which sets the read
non-blocking. This will return a byte count of zero if there is no data.
This is portable and more likely to continue working than playing around
with things inside macros.

-- 
bill davidsen	(davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon